/** * Constructs row object * @param category String of category to look the type up in or * DataCenterDBRowInit object to initialize with * @param type Optional String of type to use as context for * operations on row * @param row Optional Associative Array of column and value * pairs to use as initial data overriding defaults */ public function __construct($category, $type, array $row = array()) { $this->category = $category; $this->type = $type; $this->set(DataCenterDB::getRowDefaults($category, $type)); $this->row = array_merge($this->row, $row); }