/**
  * Initializes the config for the object
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param   ObjectConfig $config  An optional ObjectConfig object with configuration options
  * @return  void
  */
 protected function _initialize(ObjectConfig $config)
 {
     //Clone the identifier
     $identifier = clone $this->getIdentifier();
     $config->append(array('data' => array(), 'layout' => '', 'template' => $this->getName(), 'template_filters' => array('shorttag', 'function', 'url', 'decorator'), 'auto_assign' => true));
     parent::_initialize($config);
 }
Beispiel #2
0
 /**
  * Initializes the config for the object
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param ObjectConfig $config An optional ObjectConfig object with configuration options
  * @return  void
  */
 protected function _initialize(ObjectConfig $config)
 {
     $config->append(array('version' => '1.0'))->append(array('mimetype' => 'application/json; version=' . $config->version));
     parent::_initialize($config);
 }
Beispiel #3
0
 /**
  * Initializes the options for the object
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param ObjectConfig $config  An optional ObjectConfig object with configuration options
  * @return  void
  */
 protected function _initialize(ObjectConfig $config)
 {
     $count = count($this->getIdentifier()->path);
     $config->append(array('path' => '', 'filename' => $this->getIdentifier()->path[$count - 1] . '.' . $this->getIdentifier()->name, 'disposition' => 'attachment', 'transport' => 'php'));
     parent::_initialize($config);
 }
Beispiel #4
0
 /**
  * Initializes the options for the object
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param ObjectConfig $config	An optional ObjectConfig object with configuration options
  * @return  void
  */
 protected function _initialize(ObjectConfig $config)
 {
     $config->append(array('version' => '1.0', 'quote' => '"', 'separator' => ',', 'eol' => "\n"))->append(array('mimetype' => 'text/csv; version=' . $config->version));
     parent::_initialize($config);
 }
Beispiel #5
0
 /**
  * Initializes the config for the object
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param   ObjectConfig $config Configuration options
  * @return  void
  */
 protected function _initialize(ObjectConfig $config)
 {
     $config->append(array('behaviors' => array('localizable', 'routable'), 'layout' => '', 'template' => 'default', 'template_filters' => array('asset'), 'template_functions' => array('url' => array($this, 'getUrl'), 'title' => array($this, 'getTitle'), 'content' => array($this, 'getContent'), 'language' => array($this, 'getLanguage'))));
     parent::_initialize($config);
 }
Beispiel #6
0
 /**
  * Initializes the options for the object
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param ObjectConfig $config  An optional ObjectConfig object with configuration options
  * @return  void
  */
 protected function _initialize(ObjectConfig $config)
 {
     $config->append(array('mimetype' => 'text/x-vcard; version=2.1'));
     parent::_initialize($config);
 }
Beispiel #7
0
 /**
  * Initializes the config for the object
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param   ObjectConfig $config Configuration options
  * @return  void
  */
 protected function _initialize(ObjectConfig $config)
 {
     $config->append(array('behaviors' => array('localizable', 'routable'), 'mimetype' => 'application/vnd.api+json', 'version' => '1.0', 'fields' => array(), 'text_fields' => array('description')));
     parent::_initialize($config);
 }