public function __construct($config = array()) { parent::__construct($config); if ($config->load_data) { $this->addRows(self::$default, $config->new); } }
/** * Constructor * * @param object An optional KConfig object with configuration options. */ public function __construct(KConfig $config = null) { parent::__construct($config); // Set the table indentifier. if (isset($config->table)) { $this->setTable($config->table); } }
/** * Constructor * * @param object An optional KConfig object with configuration options. */ public function __construct(KConfig $config = null) { parent::__construct($config); $this->_table = $config->table; // Reset the rowset $this->reset(); // Insert the data, if exists if (!empty($config->data)) { $this->addData($config->data->toArray(), $config->new); } }
public function __construct(KConfig $config) { $config->append(array('identitiy_columns' => 'id')); parent::__construct($config); }