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


PHP KObject类代码示例

本文整理汇总了PHP中KObject的典型用法代码示例。如果您正苦于以下问题:PHP KObject类的具体用法?PHP KObject怎么用?PHP KObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了KObject类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _parseTemplate

 protected function _parseTemplate($xml)
 {
     $template = new KObject();
     foreach ($xml as $name) {
         if ($name->name() == 'form') {
             $template->set($name->name(), $name);
         } else {
             $template->set($name->name(), $name->data());
         }
     }
     return $template;
 }
开发者ID:ravenlife,项目名称:Ninjaboard,代码行数:12,代码来源:themes.php

示例2: __construct

 /**
  * Constructor.
  *
  * @param KObjectConfig $config Configuration options
  */
 public function __construct(KObjectConfig $config)
 {
     parent::__construct($config);
     //Auto register locators
     foreach ($config->locators as $locator) {
         $this->registerLocator($locator);
     }
 }
开发者ID:daodaoliang,项目名称:nooku-framework,代码行数:13,代码来源:factory.php

示例3: __construct

 /**
  * Constructor.
  *
  * @param KObjectConfig $config	An optional ObjectConfig object with configuration options.
  */
 public function __construct(KObjectConfig $config)
 {
     parent::__construct($config);
     //Create the queue
     $this->_queue = $this->getObject('lib:object.queue');
     //The filter priority
     $this->_priority = $config->priority;
 }
开发者ID:daodaoliang,项目名称:nooku-framework,代码行数:13,代码来源:chain.php

示例4: _initialize

	protected function _initialize(KObjectConfig $config)
	{
		$config->append(array(
			'path' => ''
		));

		parent::_initialize($config);
	}
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:8,代码来源:abstract.php

示例5: __construct

 /**
  * Constructor.
  *
  * @param  KObjectConfig $config A KObjectConfig object with configuration options
  */
 public function __construct($config)
 {
     parent::__construct($config);
     //Set the date
     if (!$config->timezone instanceof DateTimeZone) {
         $config->timezone = new DateTimeZone($config->timezone);
     }
     //Set the date
     $this->_date = new DateTime($config->date, $config->timezone);
 }
开发者ID:daodaoliang,项目名称:nooku-framework,代码行数:15,代码来源:date.php

示例6: __construct

 /**
  * Construct method, add a session if options are passed
  *
  * @author  Stian Didriksen <stian@ninjaforge.com>
  * @param   $config  KConfig
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     if (isset($config->retry)) {
         $this->retry = $config->retry;
     }
 }
开发者ID:ravenlife,项目名称:Ninja-Framework,代码行数:13,代码来源:curl.php

示例7: __construct

	/**
	 * Constructor
	 *
	 * Prevent creating instances of this class by making the contructor private
	 * 
	 * @param 	object 	An optional KConfig object with configuration options
	 */
	public function __construct(KConfig $config)
	{
		parent::__construct($config);
	
		// Set the view indentifier
    	$this->_template = $config->template;
	}
开发者ID:raeldc,项目名称:com_learn,代码行数:14,代码来源:abstract.php

示例8: __construct

 /**
  * Constructor.
  *
  * @param KConfig $config An optional KConfig object with configuration options.
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     foreach ($config as $key => $value) {
         $this->{$key} = $value;
     }
 }
开发者ID:stonyyi,项目名称:anahita,代码行数:12,代码来源:payload.php

示例9: _initialize

 protected function _initialize(KConfig $config)
 {
     if (empty($config->adapters)) {
         $config->adapters = array('image', 'finfo');
     }
     parent::_initialize($config);
 }
开发者ID:janssit,项目名称:www.ondernemenddiest.be,代码行数:7,代码来源:mimetype.php

示例10: __construct

 /**
  * Constructor.
  *
  * @param 	object 	An optional KConfig object with configuration options
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     $this->_state_machine = new AnDomainSpaceState();
     $this->_entities = $this->getService('anahita:domain.space.queue');
     $this->_states = new AnObjectArray();
 }
开发者ID:walteraries,项目名称:anahita,代码行数:12,代码来源:space.php

示例11: __construct

	/**
	 * Constructor.
	 *
	 * @param 	object 	An optional KConfig object with configuration options
	 */
	public function __construct( KConfig $config = null) 
	{ 
		//If no config is passed create it
		if(!isset($config)) $config = new KConfig();
		
		parent::__construct($config);
	}
开发者ID:raeldc,项目名称:com_learn,代码行数:12,代码来源:abstract.php

示例12: _initialize

    /**
     * Initializes the options for the object
     *
     * Called from {@link __construct()} as a first step of object instantiation.
     *
     * @param   object  An optional KConfig object with configuration options
     * @return void
     */
    protected function _initialize(KConfig $config)
    {
        $config->append(array(
            'priority'   => KCommand::PRIORITY_NORMAL,
        ));

        parent::_initialize($config);
    }
开发者ID:raeldc,项目名称:com_learn,代码行数:16,代码来源:command.php

示例13: _initialize

 	/**
     * Initializes the options for the object
     *
     * Called from {@link __construct()} as a first step of object instantiation.
     *
     * @param   object  An optional KConfig object with configuration options
     * @return  void
     */
    protected function _initialize(KConfig $config)
    {
        $config->append(array(
            'data'  => array(),
        ));

        parent::_initialize($config);
    }
开发者ID:raeldc,项目名称:com_learn,代码行数:16,代码来源:array.php

示例14: __construct

 /**
  * Constructor.
  *
  * @param KConfig $config An optional KConfig object with configuration options.
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     $this->_session = $config->session;
     if (!$this->_session instanceof ComConnectOauthServiceAbstract) {
         throw new InvalidArgumentException('Session must be an intance of ComConnectOauthServiceAbstract');
     }
 }
开发者ID:stonyyi,项目名称:anahita,代码行数:13,代码来源:abstract.php

示例15: __construct

 /**
  * Constructor.
  *
  * @param 	object 	An optional KConfig object with configuration options
  */
 public function __construct(KConfig $config)
 {
     parent::__construct(null);
     $this->_store = $config->store;
     foreach ($config->resources as $resource) {
         $this->insert($resource);
     }
 }
开发者ID:stonyyi,项目名称:anahita,代码行数:13,代码来源:set.php


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