本文整理汇总了PHP中AbstractAction::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractAction::__construct方法的具体用法?PHP AbstractAction::__construct怎么用?PHP AbstractAction::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AbstractAction
的用法示例。
在下文中一共展示了AbstractAction::__construct方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Creates a new SendNewsletterAction object.
*
* @param boolean $hourly
*
* @see AbstractAction::__construct()
*/
public function __construct($hourly = false)
{
$this->hourly = $hourly;
//makes sure that bbcodes cache resource exists
WCF::getCache()->addResource('bbcodes', WCF_DIR . 'cache/cache.bbcodes.php', WCF_DIR . 'lib/system/cache/CacheBuilderBBCodes.class.php');
WCF::getCache()->addResource('smileys', WCF_DIR . 'cache/cache.smileys.php', WCF_DIR . 'lib/system/cache/CacheBuilderSmileys.class.php');
parent::__construct();
}
示例2: __construct
/**
* @param \Magento\Framework\View\Asset\Repository $assetRepo
* @param \Magento\Framework\View\LayoutInterface $layout
* @param \Magento\Rule\Model\ActionFactory $actionFactory
* @param array $data
*/
public function __construct(\Magento\Framework\View\Asset\Repository $assetRepo, \Magento\Framework\View\LayoutInterface $layout, \Magento\Rule\Model\ActionFactory $actionFactory, array $data = array())
{
$this->_actionFactory = $actionFactory;
$this->_layout = $layout;
parent::__construct($assetRepo, $layout, $data);
$this->setActions(array());
$this->setType('Magento\\Rule\\Model\\Action\\Collection');
}
示例3: __construct
/**
* Creates a new WorkerAction object.
*/
public function __construct()
{
try {
parent::__construct();
} catch (SystemException $e) {
WCF::getTPL()->assign('e', $e);
WCF::getTPL()->display('workerException');
}
}
示例4: __construct
public function __construct()
{
parent::__construct();
}
示例5: __construct
public function __construct($name = 'rowSelections', $filter = "ID")
{
parent::__construct();
$this->name = $name;
$this->field_selector = $filter;
}
示例6: __construct
public function __construct()
{
parent::__construct();
$this->mActionForm = new MessageForm();
$this->mActionForm->prepare();
}
示例7: __construct
public function __construct($identifier = NULL)
{
parent::__construct('read');
}
示例8: __construct
public function __construct()
{
parent::__construct();
$this->addClass('btn');
}
示例9: __construct
public function __construct()
{
parent::__construct();
$this->mService = $this->root->mServiceManager->getService('UserSearch');
$this->setUrl('index.php?action=favorites');
}
示例10: __construct
public function __construct($name = 'rowSelections')
{
parent::__construct();
$this->name = $name;
}
示例11: __construct
public function __construct()
{
parent::__construct();
$this->mService = $this->root->mServiceManager->getService('UserSearch');
}