public function getIndexDescription($blockID = null) { $baseDescription = parent::getManageDescription($blockID); $listParams = $baseDescription; $blockParameters = Cible_FunctionsBlocks::getBlockParameters($blockID); if ($blockParameters) { $blockParams = $blockParameters->toArray(); // Catégorie $categoryID = $blockParameters[0]['P_Value']; $categoryDetails = Cible_FunctionsCategories::getCategoryDetails($categoryID); $categoryName = $categoryDetails['CI_Title']; $listParams .= "<div class='block_params_list'><strong>Infolettre : </strong>" . $categoryName . "</div>"; } return $listParams; }
public function getManageDescription($blockID = null) { $baseDescription = parent::getManageDescription($blockID); $listParams = $baseDescription; $blockParameters = Cible_FunctionsBlocks::getBlockParameters($blockID); if ($blockParameters) { $blockParams = $blockParameters->toArray(); // Catégorie $categoryID = $blockParameters[0]['P_Value']; $categoryDetails = Cible_FunctionsCategories::getCategoryDetails($categoryID); $categoryName = $categoryDetails['CI_Title']; $listParams .= "<div class='block_params_list'><strong>"; $listParams .= $this->view->getCibleText('label_category'); $listParams .= "</strong>" . $categoryName . "</div>"; // Nombre d'events afficher $nbNewsShow = $blockParameters[1]['P_Value']; $listParams .= "<div class='block_params_list'><strong>"; $listParams .= $this->view->getCibleText('label_number_to_show'); $listParams .= "</strong>" . $nbNewsShow . "</div>"; } return $listParams; }