/** * Constructor * * @param ObjectConfig $config An optional ObjectConfig object with configuration options * @return DatabaseRowsetAbstract */ public function __construct(ObjectConfig $config) { parent::__construct($config); $this->_row_cloning = $config->row_cloning; // Set the table indentifier if (isset($config->identity_column)) { $this->_identity_column = $config->identity_column; } // Reset the rowset $this->reset(); // Insert the data, if exists if (!empty($config->data)) { $this->addRow($config->data->toArray(), $config->status); } //Set the status message if (!empty($config->status_message)) { $this->setStatusMessage($config->status_message); } }
/** * Constructor * * @param ObjectConfig $config An optional ObjectConfig object with configuration options * @return DatabaseRowsetAbstract */ public function __construct(ObjectConfig $config) { //Bypass DatabaseRowsetAbstract constructor to prevent data from being added twice ObjectSet::__construct($config); //Set the row cloning $this->_row_cloning = $config->row_cloning; //Set the table identifier $this->_table = $config->table; // Set the table identifier if (isset($config->identity_column)) { $this->_identity_column = $config->identity_column; } // Reset the rowset $this->reset(); // Insert the data, if exists if (!empty($config->data)) { $this->addRow($config->data->toArray(), $config->status); } //Set the status message if (!empty($config->status_message)) { $this->setStatusMessage($config->status_message); } }
/** * {@inheritdoc} */ public function __construct() { parent::__construct(); $this->isCompletelyLoaded = true; }
function __construct($rs, $object) { parent::__construct($rs, $object); }