本文整理汇总了PHP中Helpers::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Helpers::__construct方法的具体用法?PHP Helpers::__construct怎么用?PHP Helpers::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Helpers
的用法示例。
在下文中一共展示了Helpers::__construct方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
/**
*
*
*/
function __construct()
{
parent::__construct();
$this->javascript_callbacks = is_array($GLOBALS['JAVASCRIPT_CALLBACKS']) ? $GLOBALS['JAVASCRIPT_CALLBACKS'] : array('uninitialized', 'loading', 'loaded', 'interactive', 'complete', 'failure', 'success');
$this->ajax_options = array_merge(array('before', 'after', 'condition', 'url', 'asynchronous', 'method', 'insertion', 'position', 'form', 'with', 'update', 'script'), $this->javascript_callbacks);
$this->javascript_path = dirname(__FILE__) . '/javascripts';
}
示例2: array
/**
* @todo Document this method
* @uses default_date_options
* @uses default_field_options
* @uses default_radio_options
* @uses default_text_area_options
*/
function __construct($object_name, $attribute_name)
{
parent::__construct($object_name, $attribute_name);
// Set default attributes for input fields
$this->default_field_options = array_key_exists('DEFAULT_FIELD_OPTIONS', $GLOBALS) ? $GLOBALS['DEFAULT_FIELD_OPTIONS'] : array("size" => 30);
// Set default attributes for radio buttons
$this->default_radio_options = array_key_exists('DEFAULT_RADIO_OPTIONS', $GLOBALS) ? $GLOBALS['DEFAULT_RADIO_OPTIONS'] : array();
// Set default attributes for text areas
$this->default_text_area_options = array_key_exists('DEFAULT_TEXT_AREA_OPTIONS', $GLOBALS) ? $GLOBALS['DEFAULT_TEXT_AREA_OPTIONS'] : array("cols" => 40, "rows" => 20);
// Set default attributes for dates
$this->default_date_options = array_key_exists('DEFAULT_Date_OPTIONS', $GLOBALS) ? $GLOBALS['DEFAULT_DATE_OPTIONS'] : array(":discard_type" => true);
}
示例3: array
/**
* @todo Document this method
*
* @uses javascript_default_sources
*/
function __construct()
{
parent::__construct();
$this->javascript_default_sources = array_key_exists('JAVASCRIPT_DEFAULT_SOURCES', $GLOBALS) ? $GLOBALS['JAVASCRIPT_DEFAULT_SOURCES'] : array('prototype', 'effects', 'controls', 'dragdrop');
}
示例4:
/**
* Constructor
*
* Construct an instance of Helpers with the same arguments
* @param string Name of an ActiveRecord subclass
* @param string Name of an attribute of $object
*/
function __construct($object_name = null, $attribute_name = null)
{
parent::__construct($object_name, $attribute_name);
}