public static function getByPath($gPath) { $db = Loader::db(); $row = $db->getRow("select * from Groups where gPath = ?", array($gPath)); if (isset($row['gID'])) { $g = new Group(); $g->setPropertiesFromArray($row); return $g; } }
public function setPropertiesFromArray($arr) { return parent::setPropertiesFromArray($arr); }