/** * 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('attributes' => array('filesize' => array('column' => 'filesize', 'type' => 'integer', 'write' => 'private'), 'mimeType' => array('column' => 'medium_mime_type', 'match' => '/\\w+\\/\\w+/', 'write' => 'private')))); parent::_initialize($config); }
/** * 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('attributes' => to_hash(array('coverFilename' => array('write' => 'protected'), 'coverMimetype')), 'keep_original' => true, 'sizes' => array('large' => '1600xauto', 'medium' => '640xauto'))); parent::_initialize($config); }
/** * 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('attributes' => to_hash(array('filename' => array('write' => 'protected'), 'mimetype')), 'keep_original' => true, 'sizes' => array('large' => '1024xauto', 'medium' => '640xauto', 'small' => '240xauto', 'square' => 100))); parent::_initialize($config); }