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