/** * Creates a EmpLocation object from a resultset row * * @param array $row Resultset row from the database. * @return EmpLocation EmpLocation object. */ private static function _createFromRow($row) { $empLocation = new EmpLocation(); $empLocation->setEmpNumber($row[self::DB_FIELD_EMP_NUMBER]); $empLocation->setLocation($row[self::DB_FIELD_LOC_CODE]); $empLocation->setLocationName($row[self::FIELD_LOCATION_NAME]); return $empLocation; }