public function addFileTypeSetsToCategory(\Category $category, $dbResultCategory)
  {
    $arrFileTypesOfSets = array();
    $arrFileTypeSetIds = deserialize($dbResultCategory->file_type_sets);
    if (!empty($arrFileTypeSetIds))
    {
      foreach($arrFileTypeSetIds as $arrFileTypeSetId)
      {
        $arrFileTypesOfSets = array_merge($arrFileTypesOfSets, explode(",", $this->arrPublishedFileTypeSets[$arrFileTypeSetId]));
      }
    
    }
    
    $arrFileTypes = \DmsUtils::getUniqueFileTypes($category->fileTypes, $arrFileTypesOfSets);
    
    $category->fileTypes = implode(",", $arrFileTypes);
    return $category;
  }
public function addFileTypeSetsToCategory(\Category $category, $dbResultCategory)
  {
    $arrFileTypesOfSets = array();
    $arrFileTypeSetIds = deserialize($dbResultCategory->file_type_sets);
    if (!empty($arrFileTypeSetIds))
    {
      foreach($arrFileTypeSetIds as $arrFileTypeSetId)
      {
        $arrFileTypesOfSets = array_merge($arrFileTypesOfSets, explode(",", $this->arrPublishedFileTypeSets[$arrFileTypeSetId]));
      }
    
    }
    
    $arrFileTypes = \DmsUtils::getUniqueFileTypes($category->fileTypes, $arrFileTypesOfSets);
    
    $category->fileTypes = implode(",", $arrFileTypes);
    return $category;
  }
public function addFileTypeSetsToCategory ( \ Category $ category , $ dbResultCategory ) { $ arrFileTypesOfSets = array ( ) ; $ arrFileTypeSetIds = deserialize ( $ dbResultCategory -> file_type_sets ) ; if ( ! empty ( $ arrFileTypeSetIds ) ) { foreach ( $ arrFileTypeSetIds as $ arrFileTypeSetId ) { $ arrFileTypesOfSets = array_merge ( $ arrFileTypesOfSets , explode ( "," , $ this -> arrPublishedFileTypeSets [ $ arrFileTypeSetId ] ) ) ; } } $ arrFileTypes = \ DmsUtils :: getUniqueFileTypes ( $ category -> fileTypes , $ arrFileTypesOfSets ) ; $ category -> fileTypes = implode ( "," , $ arrFileTypes ) ; return $ category ; }
Modify loaded categories.
Modify loaded categories .