-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
705 additions
and
359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -253,12 +253,14 @@ public function ExecEvent() | |
throw new Exception("External processing for event not found: " . $aEvent['external']); | ||
} | ||
} | ||
$this->Hook_Run("action_event_" . strtolower($this->sCurrentAction) . "_before", array('event' => $this->sCurrentEvent, 'params' => $this->GetParams())); | ||
$this->Hook_Run("action_event_" . strtolower($this->sCurrentAction) . "_before", | ||
array('event' => $this->sCurrentEvent, 'params' => $this->GetParams())); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mzhelskiy
Author
Contributor
|
||
/** | ||
* Проверяем на наличие внешнего обработчика евента | ||
*/ | ||
if ($aEvent['external']) { | ||
$sEventClass = $this->Plugin_GetDelegate('event', $this->aRegisterEventExternal[$aEvent['external']]); | ||
$sEventClass = $this->Plugin_GetDelegate('event', | ||
This comment has been minimized.
Sorry, something went wrong. |
||
$this->aRegisterEventExternal[$aEvent['external']]); | ||
$oEvent = new $sEventClass; | ||
$oEvent->SetActionObject($this); | ||
$oEvent->Init(); | ||
|
@@ -270,7 +272,8 @@ public function ExecEvent() | |
} else { | ||
$result = call_user_func_array(array($this, $aEvent['method']), array()); | ||
} | ||
$this->Hook_Run("action_event_" . strtolower($this->sCurrentAction) . "_after", array('event' => $this->sCurrentEvent, 'params' => $this->GetParams())); | ||
$this->Hook_Run("action_event_" . strtolower($this->sCurrentAction) . "_after", | ||
array('event' => $this->sCurrentEvent, 'params' => $this->GetParams())); | ||
return $result; | ||
} | ||
} | ||
|
@@ -397,7 +400,8 @@ protected function SetTemplateAction($sTemplate) | |
$sActionTemplatePath = $sTemplate . '.tpl'; | ||
foreach ($aDelegates as $sAction) { | ||
if (preg_match('/^(Plugin([\w]+)_)?Action([\w]+)$/i', $sAction, $aMatches)) { | ||
$sTemplatePath = $this->Plugin_GetDelegate('template', 'actions/Action' . ucfirst($aMatches[3]) . '/' . $sTemplate . '.tpl'); | ||
$sTemplatePath = $this->Plugin_GetDelegate('template', | ||
'actions/Action' . ucfirst($aMatches[3]) . '/' . $sTemplate . '.tpl'); | ||
if (empty($aMatches[1])) { | ||
$sActionTemplatePath = $sTemplatePath; | ||
} else { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
в настройках шторма есть крайняя правая граница, поставь вместо олдскульных 80 столбцов 200, не будет переносить строки. Автоформат шторма ещё красиво выставленные массивы иногда "ломает".