當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。