/** * AdmBlock_init(). * Setup caching and get boards. */ function pmxc_AdmBlock_init() { // get all boards $this->boards = PortaMx_getsmfBoards(true); $this->can_cached = 1; // disabled caching }
/** * This Methode is called on loadtime. * After all variables initiated, it calls the block dependent init methode. * Finaly the css and language is loaded if exist */ function pmxc_AdmBlock_loadinit() { global $context; $this->smf_themes = PortaMx_getsmfThemes(); // get all themes $this->smf_groups = PortaMx_getUserGroups(); // get all usergroups $this->smf_boards = PortaMx_getsmfBoards(); // get all smf boards $this->register_blocks = $context['pmx']['RegBlocks']; // get all registered block $this->block_classdef = PortaMx_getdefaultClass(); // get default classes $this->title_icons = PortaMx_getAllTitleIcons(); // get all title icons $this->custom_css = PortaMx_getCustomCssDefs(); // custom css definitions $this->can_cached = 0; // default no caching // sort the registered blocks ksort($this->register_blocks, SORT_STRING); // call the blockdepend init methode $this->pmxc_AdmBlock_init(); }