put buttons from child classes managerAddHtml = $addHtml; } protected function a___________CATEGORIES_RELATED________(){} /** * get category list */ protected function getCatList(){ dmp("getCatList - function for override!!!");exit(); } /** * put categories html */ private function putHtmlCats(){ $htmlCatList = $this->getCatList(); $showAllButtons = false; ?>
" style="display:none;" >
:

:
" style="display:none;" class="unite-inputs">
" style="display:none;" class="unite-inputs">
getMenuCategory(); $this->putRightMenu($arrMenuCat, "rightmenu_cat", "category"); } /** * put right menu category field */ private function putMenuCatField(){ //init category field menu $arrMenuCatField = array(); $arrMenuCatField["add_category"] = __("Add Category",ADDONLIBRARY_TEXTDOMAIN); $this->putRightMenu($arrMenuCatField, "rightmenu_catfield", "category_field"); } /** * put categories related items */ protected function putCatRelatedItems(){ $this->putMenuCopyMove(); $this->putMenuCategory(); $this->putMenuCatField(); $this->putDialogEditCategory(); $this->putDialogAddCategory(); $this->putDialogDeleteCategory(); } protected function a___________MAIN_FUNCTIONS________(){} /** * validate inited function */ private function validateInited(){ if(empty($this->type)) UniteFunctionsUC::throwError("The manager is not inited"); } /** * function for override */ protected function putInitItems(){} /** * function for override */ protected function putListWrapperContent(){} /** * put items wrapper html */ private function putItemsWrapper(){ $addClass = ""; if(!empty($this->viewType)) $addClass = " listitems-view-".$this->viewType; ?>
putItemsButtons()?>

putItemsFilters()?>
putListWrapperContent()?>
    putInitItems()?>
0 textItemsSelected?>
hasCats == true): $htmlCatSelect = $this->getHtmlSelectCats(); ?>
GO
putStatusLineOperations(); ?>
getMenuSingleItem(); if(!is_array($arrMenuItem)) $arrMenuItem = array(); $this->putRightMenu($arrMenuItem, "rightmenu_item", "single_item"); } /** * get multiple items menu */ protected function getMenuMulitipleItems(){ $arrMenuItemMultiple = array(); $arrMenuItemMultiple["no_action"] = __("No Action",ADDONLIBRARY_TEXTDOMAIN); return($arrMenuItemMultiple); } /** * put multiple items menu */ private function putMenuMultipleItems(){ $arrMenuItemMultiple = $this->getMenuMulitipleItems(); ?> getMenuField(); ?> viewType = $viewType; } /** * put scripts according manager type */ public static function putScriptsIncludes($type){ HelperUC::addScript("dropzone", "dropzone_js","js/dropzone"); HelperUC::addStyle("dropzone", "dropzone_css","js/dropzone"); HelperUC::addScript("unitecreator_manager_items","unitecreator_manager_items","js/manager"); HelperUC::addScript("unitecreator_manager","unitecreator_manager","js/manager"); HelperUC::addStyle("unitecreator_manager","unitecreator_manager_css"); switch($type){ case self::TYPE_ADDONS: HelperUC::addScript("unitecreator_manager_cats","unitecreator_manager_cats","js/manager"); HelperUC::addScript("unitecreator_manager_actions_addons","unitecreator_manager_actions_addons","js/manager"); break; case self::TYPE_ITEMS_INLINE: HelperUC::addScript("unitecreator_manager_actions_inline","unitecreator_manager_actions_inline","js/manager"); break; } } /** * call it before put html, function for override */ protected function onBeforePutHtml(){} /** * output manager html */ public function outputHtml(){ $this->validateInited(); $this->onBeforePutHtml(); $addClass = ""; if($this->hasCats == false) $addClass = " uc-nocats "; $managerClass = "uc-manager-".$this->type; try{ ?>
managerAddHtml?>>
hasCats == true): ?>
putHtmlCats()?> putItemsWrapper()?>
putStatusLine() ?>
putItemsWrapper(); $this->putStatusLine(); ?>
putMenuSingleItem(); $this->putMenuMultipleItems(); $this->putMenuField(); if($this->hasCats) $this->putCatRelatedItems(); $this->putAddHtml(); ?>

manager error: ".$e->getMessage().""; echo ""; echo ""; echo ""; echo "
".$message."
"; if(GlobalsUC::SHOW_TRACE == true) dmp($e->getTraceAsString()); } } /** * init manager */ protected function init(){ //the type should be set already in child classes $this->validateInited(); $this->itemsLoaderText = __("Getting Items", ADDONLIBRARY_TEXTDOMAIN); $this->textItemsSelected = __("items selected",ADDONLIBRARY_TEXTDOMAIN); if($this->hasCats){ $this->objCats = new UniteCreatorCategories(); $this->selectedCategory = ""; } } }