本文整理汇总了PHP中UniteBaseClassRev::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP UniteBaseClassRev::__construct方法的具体用法?PHP UniteBaseClassRev::__construct怎么用?PHP UniteBaseClassRev::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UniteBaseClassRev
的用法示例。
在下文中一共展示了UniteBaseClassRev::__construct方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
*
* main constructor
*/
public function __construct($mainFile, $t, $defaultView)
{
parent::__construct($mainFile, $t);
//set view
self::$view = self::getGetVar("view");
if (empty(self::$view)) {
self::$view = $defaultView;
}
//add internal hook for adding a menu in arrMenus
self::addAction(self::ACTION_ADMIN_MENU, "addAdminMenu");
//if not inside plugin don't continue
if ($this->isInsidePlugin() == true) {
self::addAction(self::ACTION_ADD_SCRIPTS, "addCommonScripts");
self::addAction(self::ACTION_ADD_SCRIPTS, "onAddScripts");
}
//a must event for any admin. call onActivate function.
$this->addEvent_onActivate();
self::addActionAjax("show_image", "onShowImage");
}
示例2: __construct
/**
*
* the constructor
*/
public function __construct()
{
UniteBaseClassRev::__construct('', $this);
//set table names
GlobalsRevSlider::$table_sliders = GlobalsRevSlider::TABLE_SLIDERS_NAME;
GlobalsRevSlider::$table_slides = GlobalsRevSlider::TABLE_SLIDES_NAME;
GlobalsRevSlider::$table_static_slides = GlobalsRevSlider::TABLE_STATIC_SLIDES_NAME;
GlobalsRevSlider::$table_settings = GlobalsRevSlider::TABLE_SETTINGS_NAME;
GlobalsRevSlider::$table_css = GlobalsRevSlider::TABLE_CSS_NAME;
GlobalsRevSlider::$table_layer_anims = GlobalsRevSlider::TABLE_LAYER_ANIMS_NAME;
GlobalsRevSlider::$filepath_backup = self::$path_plugin . "backup/";
GlobalsRevSlider::$filepath_captions = self::$path_plugin . "rs-plugin/css/captions.css";
GlobalsRevSlider::$urlCaptionsCSS = Mage::getDesign()->getSkinUrl('css/nwdthemes/revslider/dynamic.css');
GlobalsRevSlider::$urlStaticCaptionsCSS = Mage::getDesign()->getSkinUrl('css/nwdthemes/revslider/static.css');
GlobalsRevSlider::$filepath_dynamic_captions = Mage::getDesign()->getSkinBaseDir() . "/revslider/css/dynamic-captions.css";
GlobalsRevSlider::$filepath_static_captions = Mage::getDesign()->getSkinBaseDir() . "/revslider/css/static-captions.css";
GlobalsRevSlider::$filepath_captions_original = Mage::getDesign()->getSkinBaseDir() . "/revslider/css/captions-original.css";
GlobalsRevSlider::$urlExportZip = Mage::getBaseDir('tmp') . '/revslider_export.zip';
$this->init();
}
示例3: __construct
public function __construct($mainFile, $t)
{
parent::__construct($mainFile, $t);
self::addAction(self::ACTION_ENQUEUE_SCRIPTS, "onAddScripts");
}
示例4: __construct
/**
*
* main constructor
*/
public function __construct($mainFile, $t)
{
parent::__construct($mainFile, $t);
self::addAction(self::ACTION_ENQUEUE_SCRIPTS, "onAddScripts");
add_filter('wp_footer', array($this, 'onAddScriptsHtml'));
}