/**
  * @deprecated
  */
 public static function getDepartments($notUsed, $companyId)
 {
     trigger_error("The CCompany::getDepartments static method has been deprecated in 3.1 and will be removed in v4.0. Please use CCompany->departments() instead.", E_USER_NOTICE);
     $company = new CCompany();
     return $company->departments($companyId);
 }