private function setCats($type)
 {
     $model = null;
     switch ($type) {
         case 2:
             $model = new FM_Models_FM_BzorgCat();
             break;
         case 3:
             $model = new FM_Models_FM_NporgCat();
             break;
     }
     $keys = null;
     $rv = null;
     if ($model) {
         $keys = $model->getIdsByKeys(array('orgId' => $this->orgId));
     }
     if ($keys) {
         foreach ($keys as $key => $values) {
             $rv[] = $values['catId'];
         }
     }
     return $rv ? $rv : array();
 }