当前位置: 首页>>代码示例>>PHP>>正文


PHP C_Component::define方法代码示例

本文整理汇总了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');
 }
开发者ID:ayoayco,项目名称:upbeat,代码行数:7,代码来源:class.mvc_controller.php

示例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');
 }
开发者ID:ayoayco,项目名称:upbeat,代码行数:7,代码来源:class.security_manager.php

示例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');
 }
开发者ID:ayoayco,项目名称:upbeat,代码行数:11,代码来源:class.datamapper_model.php

示例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();
     }
 }
开发者ID:lcw07r,项目名称:productcampamsterdam.org,代码行数:10,代码来源:class.settings_model.php

示例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();
 }
开发者ID:jeanpage,项目名称:ca_learn,代码行数:19,代码来源:class.base_module.php

示例6: define

 function define($context = false)
 {
     parent::define($context);
     $this->implement('I_NextGen_API_XMLRPC');
 }
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:5,代码来源:package.module.nextgen_xmlrpc.php

示例7: define

 function define($context = FALSE)
 {
     parent::define($context);
     $this->add_mixin('Mixin_Cache');
     $this->implement('I_Cache');
 }
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:6,代码来源:package.module.cache.php

示例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');
 }
开发者ID:bensethro,项目名称:runcyb,代码行数:10,代码来源:class.displayed_gallery_renderer.php

示例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();
     }
 }
开发者ID:jeanpage,项目名称:ca_learn,代码行数:10,代码来源:class.datamapper_driver_base.php

示例10: define

 public function define($context = FALSE)
 {
     parent::define($context);
     $this->implement('I_Dynamic_Thumbnails_Manager');
     $this->add_mixin('Mixin_Dynamic_Thumbnails_Manager');
 }
开发者ID:kixortillan,项目名称:dfosashworks,代码行数:6,代码来源:package.module.dynamic_thumbnails.php

示例11: define

 function define()
 {
     parent::define();
     $this->add_mixin('Mixin_AutoUpdate_Admin_Ajax');
 }
开发者ID:CodeNoEvil,项目名称:mbp_web_infrastructure,代码行数:5,代码来源:class.autoupdate_admin_ajax.php

示例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');
 }
开发者ID:bensethro,项目名称:runcyb,代码行数:6,代码来源:class.mvc_view.php

示例13: define

 function define($context = FALSE)
 {
     parent::define($context);
     $this->implement('I_Component_Factory');
 }
开发者ID:albinmartinsson91,项目名称:ux_blog,代码行数:5,代码来源:class.component_factory.php

示例14: define

 function define($context = FALSE)
 {
     parent::define($context);
     $this->implement('I_Nextgen_Mail_Manager');
     $this->add_mixin('Mixin_Nextgen_Mail_Manager');
 }
开发者ID:CodeNoEvil,项目名称:mbp_web_infrastructure,代码行数:6,代码来源:class.nextgen_mail_manager.php

示例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;
 }
开发者ID:JeffreyBue,项目名称:jb,代码行数:7,代码来源:class.datamapper_driver_base.php


注:本文中的C_Component::define方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。