Exemplo n.º 1
0
 public function setAllowedSQL($uid, &$query, $index = null, $key = 'pr')
 {
     $oCpy = new CCompany();
     parent::setAllowedSQL($uid, $query, $index, $key);
     $oCpy->setAllowedSQL($uid, $query, ($key ? $key . '.' : '') . 'project_company');
     //Department permissions
     $oDpt = new CDepartment();
     $query->leftJoin('project_departments', '', $key . '.project_id = project_departments.project_id');
     $oDpt->setAllowedSQL($uid, $query, 'project_departments.department_id');
 }