本文整理汇总了PHP中C_Component::define方法的典型用法代码示例。如果您正苦于以下问题:PHP C_Component::define方法的具体用法?PHP C_Component::define怎么用?PHP C_Component::define使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类C_Component
的用法示例。
在下文中一共展示了C_Component::define方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: define
function define($context = FALSE)
{
parent::define($context);
$this->add_mixin('Mixin_MVC_Controller_Defaults');
$this->add_mixin('Mixin_MVC_Controller_Instance_Methods');
$this->implement('I_MVC_Controller');
}
示例2: define
function define($context = FALSE)
{
parent::define($context);
$this->implement('I_Security_Manager');
$this->add_mixin('Mixin_Security_Manager');
$this->add_mixin('Mixin_Security_Manager_Request');
}
示例3: define
/**
* Define the model
*/
function define($mapper = NULL, $properties = array(), $context = FALSE)
{
parent::define($context);
$this->add_mixin('Mixin_Validation');
$this->add_mixin('Mixin_DataMapper_Model_Instance_Methods');
$this->add_mixin('Mixin_DataMapper_Model_Validation');
$this->implement('I_DataMapper_Model');
}
示例4: define
function define($context = FALSE)
{
parent::define($context);
$this->add_mixin('Mixin_Validation');
if ($this->has_context('global') or $this->has_context('site')) {
$this->wrapper = C_NextGen_Global_Settings::get_instance();
} else {
$this->wrapper = C_NextGen_Settings::get_instance();
}
}
示例5: define
/**
* Defines the module
*/
function define($id = 'pope-module', $name = 'Pope Module', $description = '', $version = '', $uri = '', $author = '', $author_uri = '', $context = FALSE)
{
parent::define($context);
$this->implement('I_Pope_Module');
$this->module_id = $id;
$this->module_name = $name;
$this->module_description = $description;
$this->module_version = $version;
$this->module_uri = $uri;
$this->module_author = $author;
$this->module_author_uri = $author_uri;
$this->get_registry()->add_module($this->module_id, $this);
$this->_register_utilities();
$this->_register_adapters();
$this->_register_hooks();
}
示例6: define
function define($context = false)
{
parent::define($context);
$this->implement('I_NextGen_API_XMLRPC');
}
示例7: define
function define($context = FALSE)
{
parent::define($context);
$this->add_mixin('Mixin_Cache');
$this->implement('I_Cache');
}
示例8: define
/**
* Defines the object
* @param bool $context
*/
function define($context = FALSE)
{
parent::define($context);
$this->add_mixin('Mixin_Displayed_Gallery_Renderer');
$this->implement('I_Displayed_Gallery_Renderer');
}
示例9: define
function define($object_name, $context = FALSE)
{
parent::define($context);
$this->add_mixin('Mixin_DataMapper_Driver_Base');
$this->implement('I_DataMapper_Driver');
$this->_object_name = $object_name;
if ($this->has_method('define_columns')) {
$this->define_columns();
}
}
示例10: define
public function define($context = FALSE)
{
parent::define($context);
$this->implement('I_Dynamic_Thumbnails_Manager');
$this->add_mixin('Mixin_Dynamic_Thumbnails_Manager');
}
示例11: define
function define()
{
parent::define();
$this->add_mixin('Mixin_AutoUpdate_Admin_Ajax');
}
示例12: define
function define($template, $params = array(), $engine = 'php', $context = FALSE)
{
parent::define($context);
$this->implement('I_MVC_View');
$this->add_mixin('Mixin_Mvc_View_Instance_Methods');
}
示例13: define
function define($context = FALSE)
{
parent::define($context);
$this->implement('I_Component_Factory');
}
示例14: define
function define($context = FALSE)
{
parent::define($context);
$this->implement('I_Nextgen_Mail_Manager');
$this->add_mixin('Mixin_Nextgen_Mail_Manager');
}
示例15: define
function define($object_name, $context = FALSE)
{
parent::define($context);
$this->add_mixin('Mixin_DataMapper_Driver_Base');
$this->implement('I_DataMapper_Driver');
$this->_object_name = $object_name;
}