| Version 4 (modified by medar23, 6 weeks ago) |
|---|
Хуки(Hooks)
Table of Contents
Описание, что это такое и как использовать.
Список PHP хуков
Версия движка: 0.4.2
/classes/actions
$this->Hook_Run('blog_add_before', array('oBlog'=>$oBlog)); Аргументы: Описание:
$this->Hook_Run('blog_add_after', array('oBlog'=>$oBlog)); Аргументы: Описание:
$this->Hook_Run('blog_edit_before', array('oBlog'=>$oBlog)); Аргументы: Описание:
$this->Hook_Run('blog_edit_after', array('oBlog'=>$oBlog)); Аргументы: Описание:
$this->Hook_Run('check_blog_fields', array('bOk'=>&$bOk)); Аргументы: Описание:
$this->Hook_Run('blog_show',array('sShowType'=>$sShowType)); Аргументы: Описание:
$this->Hook_Run('topic_show',array(«oTopic»=>$oTopic)); Аргументы: Описание:
$this->Hook_Run('blog_collective_show',array('oBlog'=>$oBlog,'sShowType'=>$sShowType)); Аргументы: Описание:
$this->Hook_Run('comment_add_before', array('oCommentNew'=>$oCommentNew,'oCommentParent'=>$oCommentParent,'oTopic'=>$oTopic)); Аргументы: Описание:
$this->Hook_Run('comment_add_after', array('oCommentNew'=>$oCommentNew,'oCommentParent'=>$oCommentParent,'oTopic'=>$oTopic)); Аргументы: Описание:
$this->Hook_Run('blog_delete_before', array('sBlogId'=>$sBlogId)); Аргументы: Описание:
$this->Hook_Run('blog_delete_after', array('sBlogId'=>$sBlogId)); Аргументы: Описание:
$this->Hook_Run('topic_edit_show',array('oTopic'=>$oTopic)); Аргументы: Описание:
$this->Hook_Run('check_link_fields', array('bOk'=>&$bOk)); Аргументы: Описание:
$this->Hook_Run('personal_show',array('sShowType'=>$sShowType)); Аргументы: Описание:
$this->Hook_Run('profile_whois_show',array(«oUserProfile»=>$this->oUserProfile)); Аргументы: Описание:
$this->Hook_Run('topic_edit_show',array('oTopic'=>$oTopic)); Аргументы: Описание:
$this->Hook_Run('check_question_fields', array('bOk'=>&$bOk)); Аргументы: Описание:
$this->Hook_Run('action_shutdown_settings'); Аргументы: Описание:
$this->Hook_Run('check_talk_fields', array('bOk'=>&$bOk)); Аргументы: Описание:
$this->Hook_Run('topic_edit_show',array('oTopic'=>$oTopic)); Аргументы: Описание:
$this->Hook_Run('topic_delete_before', array('oTopic'=>$oTopic)); Аргументы: Описание:
$this->Hook_Run('topic_delete_after', array('oTopic'=>$oTopic)); Аргументы: Описание:
$this->Hook_Run('topic_add_show'); Аргументы: Описание:
$this->Hook_Run('topic_add_before', array('oTopic'=>$oTopic,'oBlog'=>$oBlog)); Аргументы: Описание:
$this->Hook_Run('topic_add_after', array('oTopic'=>$oTopic,'oBlog'=>$oBlog)); Аргументы: Описание:
$this->Hook_Run('topic_edit_before', array('oTopic'=>$oTopic,'oBlog'=>$oBlog)); Аргументы: Описание:
$this->Hook_Run('topic_edit_after', array('oTopic'=>$oTopic,'oBlog'=>$oBlog,'bSendNotify'=>&$bSendNotify)); Аргументы: Описание:
$this->Hook_Run('check_topic_fields', array('bOk'=>&$bOk)); Аргументы: Описание:
$this->Hook_Run('init_action'); Аргументы: нет Описание:
engine/classes
Аргументы: Описание:
$this->Hook_Run(«action_event_».strtolower($this->sCurrentAction)."_before",array('event'=>$this->sCurrentEvent,'params'=>$this->GetParams?())); Аргументы: Описание:
$this->Hook_Run(«action_event_».strtolower($this->sCurrentAction)."_after",array('event'=>$this->sCurrentEvent,'params'=>$this->GetParams?())); Аргументы: Описание:
$this->Hook_Run('engine_init_complete'); Аргументы: Описание:
$this->Hook_Run('module_'.$sModuleName.'_'.strtolower($sMethod).'_after',array('result'=>&$result,'params'=>$aArgs)); Аргументы: Описание:
$this->Hook_Run(«action_init_».strtolower($sActionClass)."_before"); Аргументы: Описание:
$this->Hook_Run(«action_init_».strtolower($sActionClass)."_after"); Аргументы: Описание:
$this->Hook_Run(«action_shutdown_».strtolower($sActionClass)."_before"); Аргументы: Описание:
$this->Hook_Run(«action_shutdown_».strtolower($sActionClass)."_after"); Аргументы: Описание:
engine/modules/lang
$this->Hook_Run('lang_init_start'); Аргументы: Описание:
engine/modules/viewer
$this->Hook_Run('viewer_init_start'); Аргументы: Описание:
plugins/page/classes/actions
$this->Hook_Run('check_page_fields', array('bOk'=>&$bOk)); Аргументы: Описание:
Список template хуков
Версия движка: 0.4.2
корень папки скина:
block.stream.tpl (1 usage) {hook run='block_stream_nav_item'}
comment_tree.tpl (2 usages) {hook run='form_add_comment_begin'} {hook run='form_add_comment_end'}
footer.tpl (2 usages) {hook run='content_end'} {hook run='body_end'}
header.tpl (4 usages) {hook run='html_head_begin'} {hook run='html_head_end'} {hook run='body_begin'} {hook run='content_begin'}
header_top.tpl (4 usages) {hook run='form_login_popup_begin'} {hook run='form_login_popup_end'} {hook run='userbar_item'} {hook run='main_menu'}
menu.blog.tpl (5 usages) {hook run='menu_blog_index_item'} {hook run='menu_blog_blog_item'} {hook run='menu_blog_log_item'} {hook run='menu_blog_top_item'} {hook run='menu_blog'}
menu.blog_edit.tpl (2 usages) {hook run='menu_blog_edit_admin_item'} {hook run='menu_blog_edit'}
menu.people.tpl (2 usages) {hook run='menu_people_people_item'} {hook run='menu_people'}
menu.profile.tpl (3 usages) {hook run='menu_profile_profile_item'} {hook run='menu_profile_my_item'} {hook run='menu_profile'}
menu.settings.tpl (3 usages) {hook run='menu_settings_settings_item'} {hook run='menu_settings_invite_item'} {hook run='menu_settings'}
menu.talk.tpl (2 usages) {hook run='menu_talk_talk_item'} {hook run='menu_talk'}
menu.topic_action.tpl (4 usages) {hook run='menu_topic_action_add_item'} {hook run='menu_topic_action_saved_item'} {hook run='menu_topic_action_published_item'} {hook run='menu_topic_action'}
topic.tpl (2 usages) {hook run='topic_show_info' topic=$oTopic} {hook run='topic_show_end' topic=$oTopic} actions/ActionBlog (2 usages)
add.tpl (2 usages) {hook run='form_add_blog_begin'} {hook run='form_add_blog_end'}
actions\ActionLink? (2 usages) add.tpl (2 usages) {hook run='form_add_topic_link_begin'} {hook run='form_add_topic_link_end'}
actions\ActionLogin? (2 usages) index.tpl (2 usages) {hook run='form_login_begin'} {hook run='form_login_end'}
actions\ActionProfile? (3 usages) whois.tpl (3 usages) {hook run='profile_whois_privat_item' oUserProfile=$oUserProfile} {hook run='profile_whois_item' oUserProfile=$oUserProfile} {hook run='profile_whois_activity_item' oUserProfile=$oUserProfile}
actions\ActionQuestion? (2 usages) add.tpl (2 usages) {hook run='form_add_topic_question_begin'} {hook run='form_add_topic_question_end'}
actions\ActionRegistration? (2 usages) index.tpl (2 usages) {hook run='form_registration_begin'} {hook run='form_registration_end'}
actions\ActionSettings? (4 usages) profile.tpl (2 usages) {hook run='form_settings_profile_begin'} {hook run='form_settings_profile_end'}
tuning.tpl (2 usages) {hook run='form_settings_tuning_begin'} {hook run='form_settings_tuning_end'}
actions\ActionTalk? (2 usages) add.tpl (2 usages) {hook run='form_add_talk_begin'} {hook run='form_add_talk_end'}
actions\ActionTopic? (2 usages) add.tpl (2 usages) {hook run='form_add_topic_topic_begin'} {hook run='form_add_topic_topic_end'}
