Initializes the default configuration for the object.

Called from {@link __construct()} as a first step of object instantiation.

@param AnConfig $config An optional AnConfig object with configuration options.
342259
protected function _initialize(AnConfig $config)
    {
        $config->append(array(
            'behaviors' => array(
                'assignable' => array(
                    'assignment_option' => ComComponentsDomainBehaviorAssignable::OPTION_NOT_OPTIONAL,
                    'actor_identifiers' => array('com:people.domain.entity.person'),
                ),
            ),
        ));

        parent::_initialize($config);
    }
933567
protected function _initialize(AnConfig $config)
    {
        $config->append(array(
             'priority' => AnCommand::PRIORITY_LOW,
             'auto_mixin' => true,
        ));

        parent::_initialize($config);
    }
1198733
public function setConfig(AnConfig $config)
    {
        parent::setConfig($config);

        $this->_entityset = $config->entityset;
        $this->_cardinality = $config->cardinality;

        if (is_numeric($this->_cardinality)) {
            $this->_cardinality = (int) $this->_cardinality;
        }

        $this->_delete_rule = $config->parent_delete;
        $this->_child_key = $config->child_key;
    }
255981
protected function _initialize(ObjectConfig $config)
    {
        $config->append(array(
            'method'  => self::GET,
            'url'     => '',
            'headers' => array()
        ));

        parent::_initialize($config);
    }
905026
protected function _initialize(AnConfig $config)
    {
        $config->append(array(
            'enable' => true,
            'priority' => AnCommand::PRIORITY_LOWEST,
        ));

        parent::_initialize($config);
    }
405249
protected function _initialize(AnConfig $config)
    {
        $permission = clone $this->getIdentifier();
        $permission->path = array($permission->path[0], 'permission');
        register_default(array('identifier' => $permission, 'prefix' => $this));

        $config->append(array(
            'behaviors' => array($permission),
            'request' => array('format' => 'html'),
        ))->append(array(
            'view' => $config->request->get ? $config->request->get : ($config->request->view ? $config->request->view : $this->getIdentifier()->name),
        ));

        parent::_initialize($config);
    }
52762
protected function _initialize(AnConfig $config)
    {
        $config->append(array(
            'priority' => AnCommand::PRIORITY_NORMAL,
        ));

        parent::_initialize($config);
    }
423165
protected function _initialize(AnConfig $config)
    {
        $config->append(array(
            'theme' => 'base'
        ));

        $config->append(array(
            'view' => 'tmpl:'.$config->theme.'.view.'.$this->getIdentifier()->name.'.'.$config->request->getFormat(),
        ));

        parent::_initialize($config);
    }
666602
protected function _initialize(AnConfig $config)
    {
        $child = clone $this->_parent;

        $child->name = AnInflector::singularize($config->name);

        $config->append(array(
            'entityset' => 'anahita:domain.entityset.onetomany',
            'cardinality' => 'many',
            'child_key' => $this->_parent->name,
            'parent_delete' => AnDomain::DELETE_CASCADE,
            'child' => $child,
        ));

        parent::_initialize($config);
    }
316511
protected function _initialize(AnConfig $config)
    {
        $config->append(array(
            'layout' => 'list',
            'template_paths' => array(
                dirname(__FILE__).'/html',
                ANPATH_THEMES.'/'.$this->getService('application')->getTemplate().'/html/com_base/comment'
            ),
        ));

        parent::_initialize($config);
    }
858230
public function setConfig(AnConfig $config)
    {
        //if the property configuration has been set
        //then don't allow it to change
        if (isset($this->__config)) {
            $this->__config->append($config);
            foreach ($this->__config as $key => $value) {
                $config[$key] = $this->__config[$key];
            }
        } else {
            $this->__config = $config;
        }

        $this->_name = $config->name;

        $this->_initialize($config);

        $this->_unique = $config->unique;
        $this->_required = $config->required;
        $this->_write_access = (int) $config->write;
        $this->_read_access = (int) $config->read;
    }
151312
public function setConfig(AnConfig $config)
    {
        parent::setConfig($config);

        $this->_type_column = $config->type_column;

        $this->_child_column = $config->child_column;

        $this->_polymorphic = $config->polymorphic === true;

        if (!isset($this->_parent)) {
            $this->_polymorphic = true;
        }
    }
974783
protected function _initialize(AnConfig $config)
    {
        $config->append(array(
            'priority' => AnCommand::PRIORITY_LOWEST,
            'validator' => $this->_repository->getIdentifier()->name,
        ));

        parent::_initialize($config);
    }
852893
protected function _initialize(AnConfig $config)
    {
        $identifier = clone $this->_parent;
        $identifier->name = AnInflector::singularize($this->_name);
        $config->append(array(
            'entityset' => 'anahita:domain.entityset.manytomany',
            'target' => $identifier,
            'target_child_key' => AnInflector::variablize($identifier->name),
            'target_parent_key' => 'id',
        ));

        if (!$config->as) {
            //keep the as always the same for the two many to many relationship
            $names = array($config->parent->name, AnInflector::singularize($config->name));
            sort($names);
            $config->as = $names[0].ucfirst(AnInflector::pluralize($names[1]));
        }

        parent::_initialize($config);
    }
842661
public function initialize(array $config)
    {
        $config += $this->_defaultConfig;
        $this->config('fields', $this->_resolveFields($config['fields']));
        $this->config('strategy', $this->_resolveStrategy($config['strategy']));
    }
881817
protected function _initialize(AnConfig $config)
    {
        $config->append(array(
            'parser' => 'com:notifications.template.helper.parser',
            'behaviors' => array(
                'com:mailer.controller.behavior.mailer' => $config->toArray()
             ),
        ));

        parent::_initialize($config);
    }
706676
protected function _initialize(AnConfig $config)
    {
        $config->append(array(
            'repository' => $config->mixer->getIdentifier()->name,
            'priority' => AnCommand::PRIORITY_HIGHEST,
        ));

        parent::_initialize($config);
    }