本文整理汇总了PHP中C_Component::initialize方法的典型用法代码示例。如果您正苦于以下问题:PHP C_Component::initialize方法的具体用法?PHP C_Component::initialize怎么用?PHP C_Component::initialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类C_Component
的用法示例。
在下文中一共展示了C_Component::initialize方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initialize
/**
* Creates a new entity for the specified mapper
* @param C_DataMapper_Driver_Base $mapper
* @param array|stdClass $properties
* @param string $context
*/
function initialize($mapper = NULL, $properties = FALSE)
{
$this->_mapper = $mapper;
$this->_stdObject = $properties ? (object) $properties : new stdClass();
parent::initialize();
$this->set_defaults();
}
示例2: initialize
/**
* Initialize the view with some parameters
* @param array $params
* @param context $context
*/
function initialize($template, $params = array(), $engine = 'php', $context = FALSE)
{
parent::initialize($context);
$this->_template = $template;
$this->_params = (array) $params;
$this->_engine = $engine;
}
示例3: initialize
function initialize()
{
parent::initialize();
$this->_document_root = $this->set_document_root(ABSPATH);
}
示例4: initialize
function initialize()
{
parent::initialize();
$this->setting_name = C_NextGen_Settings::get_instance()->frame_event_cookie_name;
}
示例5: initialize
function initialize()
{
parent::initialize();
$this->_settings = $this->object->get_routing_settings();
}
示例6: initialize
/**
* Creates a new entity for the specified mapper
* @param C_DataMapper_Driver_Base $mapper
* @param array|stdClass $properties
* @param string $context
*/
function initialize($mapper = NULL, $properties = FALSE)
{
$this->_mapper = $mapper;
$this->_stdObject = $properties ? (object) $properties : new stdClass();
parent::initialize();
if (!$this->has_default_values()) {
$this->set_defaults();
$this->_stdObject->__defaults_set = TRUE;
}
}
示例7: initialize
function initialize()
{
parent::initialize();
if ($this->has_method('define_columns')) {
$this->define_columns();
}
$this->lookup_columns();
}
示例8: initialize
function initialize()
{
parent::initialize();
$this->_document_root = $this->set_document_root($_SERVER['DOCUMENT_ROOT']);
}
示例9: initialize
function initialize()
{
parent::initialize();
$this->_request_method = $_SERVER['REQUEST_METHOD'];
}
示例10: initialize
function initialize()
{
parent::initialize();
$this->setting_name = C_NextGen_Settings::get_instance()->frame_communication_option_name;
}
示例11: initialize
function initialize()
{
parent::initialize();
$this->lookup_columns();
}
示例12: initialize
function initialize($name = '', $properties = array())
{
parent::initialize($name);
$properties['name'] = $name;
foreach ($properties as $k => $v) {
$this->{$k} = $v;
}
}
示例13: initialize
function initialize($object_name)
{
parent::initialize();
$this->_object_name = $object_name;
}