/** * Return department as object. * @return Department */ public function GetDepartmentObj() { if ($this->_DepartmentObj == null) { $deps = new Departments(); $this->_DepartmentObj = $deps->GetDepartment($this->GetDepartmentId()); } return $this->_DepartmentObj; }
/** * Return department as object. * @return Department */ public function GetDepartmentObj() { if ($this->_DepartmentObj == null) { $this->_DepartmentObj = Departments::GetDepartment($this->GetDepartmentId()); } return $this->_DepartmentObj; }
/** * Return department as object. * @return Department */ public function GetOddzial() { if ($this->_IsDepartmentObjSet == false) { $this->_DepartmentObj = Departments::GetDepartment($this->Getdepartments_id()); $this->_IsDepartmentObjSet = true; } return $this->_DepartmentObj; }