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


PHP KObject::_initialize方法代码示例

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


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

示例1: _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

示例2: _initialize

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

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

示例3: _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(
            'state' => KFactory::get('koowa:config.state'),
       	));

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

示例4: _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

示例5: _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

示例6: _initialize

 protected function _initialize($config)
 {
     try {
         $config->append(array('manifest' => null, 'translator' => $this->getService('translator')));
     } catch (KServiceIdentifierException $e) {
         throw new KException('Please first upgrade EXTman to be able to use this extension.');
     }
     parent::_initialize($config);
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:9,代码来源:checker.php

示例7: _initialize

 protected function _initialize(KConfig $config)
 {
     // TODO: Set the database to be a singleton, use com:application.database
     $database = $this->getService('com://site/mongo.database.adapter.document');
     $package = $this->getIdentifier()->package;
     $name = $this->getIdentifier()->name;
     $config->append(array('command_chain' => $this->getService('koowa:command.chain'), 'event_dispatcher' => $this->getService('koowa:event.dispatcher'), 'dispatch_events' => false, 'enable_callbacks' => false, 'database' => $database, 'behaviors' => array(), 'filters' => array(), 'name' => empty($package) ? $name : $package . '_' . $name));
     parent::_initialize($config);
 }
开发者ID:raeldc,项目名称:nooku-mongodb,代码行数:9,代码来源:abstract.php

示例8: _initialize

 protected function _initialize(KConfig $config)
 {
     if (empty($config->adapters)) {
         $config->adapters = array('finfo');
     } elseif (is_string($config->adapters)) {
         $config->adapters = array($config->adapters);
     }
     parent::_initialize($config);
 }
开发者ID:raeldc,项目名称:nooku-server,代码行数:9,代码来源:mimetype.php

示例9: _initialize

 /**
  * Initializes the options for the object
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param   array   Options
  * @return  array   Options
  */
 protected function _initialize(KConfig $options)
 {
     $name = isset($options->name) ? $options->name : (string) $this->node['name'];
     $id = isset($options->id) ? $options->id : isset($this->node['id']) ? (string) $this->node['id'] : $name;
     $label = isset($this->node['label']) ? (string) $this->node['label'] : false;
     $label = $label ? $label : KInflector::humanize((string) $this->node['name']);
     $options->append(array('parent' => false, 'identifier' => null, 'group' => false, 'fetchTooltip' => true, 'name' => $name, 'id' => $id, 'label' => $label));
     parent::_initialize($options);
 }
开发者ID:ravenlife,项目名称:Ninja-Framework,代码行数:17,代码来源:abstract.php

示例10: _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(
        	'dispatcher'   => KFactory::get('koowa:event.dispatcher'),
    	    'auto_connect' => true,
    		'priority'     => KCommand::PRIORITY_NORMAL 
        ));

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

示例11: _initialize

	protected function _initialize(KConfig $config)
	{
		$config->append(array(
			'storage_path' => 'docs',
			'storage_name' => null,
			'storage' 		=> null,
			'selector'		=> 'default',
			'type'			=> $this->_identifier->name
		));
	
		parent::_initialize($config);
	}
开发者ID:raeldc,项目名称:com_learn,代码行数:12,代码来源:nosql.php

示例12: _initialize

 /**
  * Initializes the default configuration for the object.
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param KConfig $config An optional KConfig object with configuration options.
  */
 protected function _initialize(KConfig $config)
 {
     $description = $this->_description;
     $properties = $description->getProperty();
     $validations = array();
     foreach ($properties as $property) {
         if ($property->isAttribute() && $property->getFormat()) {
             $validations[$property->getName()]['format'] = $property->getFormat();
         }
         if ($property->isSerializable() && $property->isRequired()) {
             $validations[$property->getName()]['required'] = true;
         }
         if ($property->isSerializable() && $property->isUnique()) {
             $validations[$property->getName()]['uniqueness'] = array('scope' => array());
         }
     }
     $config->append(array('validations' => $validations));
     parent::_initialize($config);
 }
开发者ID:NicholasJohn16,项目名称:anahita,代码行数:26,代码来源:abstract.php

示例13: _initialize

 /**
  * Initializes the options for the object
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param  KObjectConfig $config  An optional ObjectConfig object with configuration options.
  * @return void
  */
 protected function _initialize(KObjectConfig $config)
 {
     $config->append(array('locale' => 'en-GB'));
     parent::_initialize($config);
 }
开发者ID:daodaoliang,项目名称:nooku-framework,代码行数:13,代码来源:abstract.php

示例14: _initialize

 /**
  * Initializes the default configuration for the object.
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param KConfig $config An optional KConfig object with configuration options.
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('response' => null));
     parent::_initialize($config);
 }
开发者ID:stonyyi,项目名称:anahita,代码行数:12,代码来源:abstract.php

示例15: _initialize

 /**
  * Initializes the default configuration for the object
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param KConfig $config An optional KConfig object with configuration options.
  *
  * @return void
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('folder' => 'assets'));
     parent::_initialize($config);
 }
开发者ID:walteraries,项目名称:anahita,代码行数:14,代码来源:abstract.php


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