Eventum:CustomFieldAPI

Eventum Menu: Home - Documentation - FAQ - Help

[edit] Overview

The custom field API allows special functionality to be added to custom fields. Custom Field backends should be placed in include/custom_field/ and named "class.name.php". Inside the file the class should be named "name_Custom_Field_Backend". Once the backend file is in place you need to specify the backend on the manage custom fields page.

This documentation page is a work in progress.

[edit] Examples

[edit] Default Value

/**
 * Custom field backend showing example default value
 *
 * @author Bryan Alsdorf <bryan@mysql.com>
 */
class Default_Value_Custom_Field_Backend
{
    function getDefaultValue($fld_id)
    {
        // your logic here
        return 'eventum is the best';
    }
}

Retrieved from "http://forge.mysql.com/wiki/Eventum:CustomFieldAPI"

This page has been accessed 1,990 times. This page was last modified 12:39, 23 June 2009.

Find

Browse
MySQLForge
Main Page
Current events
Recent changes
Random page
Help
Edit
Edit this page
Editing help
This page
Discuss this page
Post a comment
Printable version
Context
Page history
What links here
Related changes
My pages
Special pages
New pages
File list
Statistics
Bug reports
More...