The implementation relays on the local structure, this means that this service will use also the file system and Doctrine for synchronizing with the database.
Inheritance: extends ThemeServiceLocalFileSystem, implements Newscoop\Service\IThemeManagementService
Example #1
0
 public function getCount(array $p_params = array(), array $cols = array())
 {
     $search = $this->getSearchObject();
     $p_params = (object) $p_params;
     if (isset($p_params->search)) {
         if (@trim($p_params->search[$this->_pubColFilterIdx]) != "") {
             $p = new Publication();
             $p->setId(intval($p_params->search[$this->_pubColFilterIdx]));
             try {
                 return $this->_service->getCountThemes($p, $search);
             } catch (\Exception $e) {
                 return 0;
             }
         }
         $this->search($p_params->search);
     }
     try {
         return $this->_service->getCountUnassignedThemes($search);
     } catch (\Exception $e) {
         return 0;
     }
 }