本文整理汇总了PHP中EventManager::fire方法的典型用法代码示例。如果您正苦于以下问题:PHP EventManager::fire方法的具体用法?PHP EventManager::fire怎么用?PHP EventManager::fire使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EventManager
的用法示例。
在下文中一共展示了EventManager::fire方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
public function index($id = 0)
{
if (EventManager::fire("builderengine_home_override")) {
return;
}
if ($id != 0) {
return $this->read($id);
}
$this->load->model("users");
$this->show->disable_full_wrapper();
$this->show->theme('home.php', null);
}
示例2: fire_action
function fire_action($event, &$arg)
{
EventManager::fire($event, $arg);
}
示例3: process_api
function process_api($par1)
{
global $BuilderEngine;
$this->show->set_frontend();
$this->load->model('users');
$argv[0] = "api";
$argv = array_merge($argv, func_get_args());
$handler = "";
$parameters = "";
$this->parse($argv, $handler, $parameters);
$parameters_string = implode("/", $parameters[1]);
$page_path = $argv[0] . "/" . $parameters_string;
$module_folder = explode("/", $handler[1]);
/*$result = $this->cache->fetch("cached-page-".$page_path);
if($result)
{
echo $result;
return;
}*/
if (!$BuilderEngine->is_editor_active()) {
if (isset($handler[0])) {
$data['contents'] = Modules::run_with_params($handler[0], $parameters[0]);
}
if (!isset($handler[0]) || $data['contents'] == "__NO_MODULE__" || $data['contents'] == "__404__") {
$data['contents'] = Modules::run_with_params($handler[1], $parameters[1]);
} else {
}
if ($data['contents'] == "__404__" || $data['contents'] == "__NO_MODULE__") {
if (EventManager::fire("builderengine_default_route")) {
return;
}
return show_404();
}
if (isset($_POST['be_editor_frame'])) {
$this->user->set_session_data('is_editor_active', true);
}
$this->show->frontend('full', $data);
} else {
$this->show->frontend('full');
}
}
示例4: handle_foot
function handle_foot($options = array())
{
$this->_integrate_builderengine_js($options);
EventManager::fire('be_foot');
echo "<script>";
EventManager::fire('be_enqueue_scripts');
echo "</script>";
}
示例5: __construct
public function __construct($id = NULL)
{
parent::__construct($id);
EventManager::fire("builderengine_user_construct", $this);
}
示例6: fire_action
function fire_action($event)
{
EventManager::fire($event);
}