-
Notifications
You must be signed in to change notification settings - Fork 19
Properties
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.
This extension will function automatically when enabled.
This extension has no settings.
This is the hook used by other extensions so they can register their properties before any other processing has occurred.
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
.