/** * Constructor * * @param object A Library\ObjectConfig object with configuration options. * @return void */ public function __construct(Library\ObjectConfig $config) { parent::__construct($config); if ($config->table) { $this->_table = $config->table; } }
public function __construct(Library\ObjectConfig $config) { parent::__construct($config); foreach ($config as $key => $value) { $this->{'_' . $key} = $value; } }
/** * Constructor * * @param Library\ObjectConfig $config */ public function __construct(Library\ObjectConfig $config) { parent::__construct($config); foreach ($config as $key => $value) { if (property_exists($this, '_' . $key)) { $this->{'_' . $key} = $value; } } }
public function __construct(Library\ObjectConfig $config) { // Need to set strategy before parent::__construct, otherwise strategy won't be available in getMixableMethods(). if ($config->strategy) { $identifier = clone $config->object_identifier; $identifier->path = array('database', 'behavior', 'orderable'); $identifier->name = $config->strategy; $this->setStrategy($config->object_manager->getObject($identifier, Library\ObjectConfig::unbox($config))); } parent::__construct($config); }
public function __construct(Library\ObjectConfig $config) { parent::__construct($config); $this->_tables = $this->getObject('com:languages.model.tables')->enabled(true)->getRowset(); }
public function __construct(Library\ObjectConfig $config) { parent::__construct($config); $this->_table = $config->table; $this->_date = new Library\Date(array('timezone' => 'GMT')); }
public function __construct(Library\ObjectConfig $config) { parent::__construct($config); $this->_populateStrategies(); }
public function __construct(Library\ObjectConfig $config) { parent::__construct($config); $this->_user = $this->getObject('com:users.model.users')->id($config->user)->getRow(); }
public function __construct(Library\ObjectConfig $config) { parent::__construct($config); $this->_expiration = $config->expiration; $this->_expirable = $config->expirable; }