本文整理匯總了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'));
}