mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-02 12:49:27 +00:00
1a2fce8d1c
- Moved all the UDF related code from UDFWidget to UDFLib - UDFWidget is now using UDFLib
19 lines
522 B
PHP
19 lines
522 B
PHP
<?php
|
|
|
|
/**
|
|
* Represents a generic UDF element
|
|
* It's used to render the HTML of a UDF element using widgets
|
|
*/
|
|
class UDFWidget extends HTMLWidget
|
|
{
|
|
/**
|
|
* Called by the WidgetLib, it renders the HTML of the UDF
|
|
*/
|
|
public function display($widgetData)
|
|
{
|
|
// _ci is the instance of Code Igniter and the library UDFLib was previously loaded,
|
|
// so now is it possibile to call the method displayUDFWidget of UDFLib
|
|
// to render the HTML of this UDF
|
|
$this->_ci->udflib->displayUDFWidget($widgetData);
|
|
}
|
|
} |