Skip to content
Anthony Short edited this page Aug 17, 2010 · 3 revisions

This extension has no direct usage, but it used by other extensions.

This is a special extension that allows other extensions to create custom CSS properties. Extensions with the register_property method can map a function to a CSS property.

Usage

This extension will function automatically when enabled.

Settings

This extension has no settings.

Hooks

register_property(Scaffold_Extension_Properties $obj)

This is the hook used by other extensions so they can register their properties before any other processing has occurred.

Public Methods

register(string $name, array $map)

This method is used during the register_property hook to map a custom property to a method in your extension. Here’s an example from the ImageReplace extension:

<?php
public function register_property($properties)
{
	$properties->register('image-replace',array($this,'image_replace'));
}

When the image-replace property is encountered in the CSS, it will call the image_replace function in the object in $this.