PluginHooks:Sandbox

=Hook Reference=

Arguments
1: Net_URL_Mapper

Related Code
File: lib/router.php (line 511) ...

$m-&gt;connect(':nickname',                   array('action' =&gt; 'showstream'),                    array('nickname' =&gt; '[a-zA-Z0-9]{1,64}'));

Event::handle('RouterInitialized', array($m));

return $m; }

function map($path)

...

Examples
class ExamplePlugin extends Plugin { public function onRouterInitialized ($net_url_mapper) { //do something } }

Related Code
File: lib/common.php (line 428) ...   } }

// Give plugins a chance to initialize in a fully-prepared environment

Event::handle('InitializePlugin');

...

Examples
class ExamplePlugin extends Plugin { public function onInitializePlugin { //do something } }

Arguments
1: PluginHooks:Arguments

Related Code
File: index.php (line 180) ...       return; }

$args = array_merge($args, $_REQUEST);

Event::handle('ArgsInitialize', array(&amp;$args));

$action = $args['action'];

if (!$action || !preg_match('/^[a-zA-Z0-9_-]*$/', $action)) { common_redirect(common_local_url('public'));

...

Examples
class ExamplePlugin extends Plugin { public function onArgsInitialize ($) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 96) ...    *     * @return nothing */   function showPage {       if (Event::handle('StartShowHTML', array($this))) { $this-&gt;startHTML; Event::handle('EndShowHTML', array($this)); }       if (Event::handle('StartShowHead', array($this))) { $this-&gt;showHead;

...

Examples
class ExamplePlugin extends Plugin { public function onStartShowHTML ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 98) ...    */    function showPage {       if (Event::handle('StartShowHTML', array($this))) { $this-&gt;startHTML; Event::handle('EndShowHTML', array($this)); }       if (Event::handle('StartShowHead', array($this))) { $this-&gt;showHead; Event::handle('EndShowHead', array($this)); }

...

Examples
class ExamplePlugin extends Plugin { public function onEndShowHTML ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 100) ...   {        if (Event::handle('StartShowHTML', array($this))) { $this-&gt;startHTML; Event::handle('EndShowHTML', array($this)); }       if (Event::handle('StartShowHead', array($this))) { $this-&gt;showHead; Event::handle('EndShowHead', array($this)); }       if (Event::handle('StartShowBody', array($this))) { $this-&gt;showBody;

... File: lib/action.php (line 345) ...   {        $this-&gt;elementStart('body', (common_current_user) ? array('id' =&gt; $this-&gt;trimmed('action'), 'class' =&gt; 'user_in')                           : array('id' =&gt; $this-&gt;trimmed('action'))); $this-&gt;elementStart('div', array('id' =&gt; 'wrap')); if (Event::handle('StartShowHeader', array($this))) { $this-&gt;showHeader; Event::handle('EndShowHeader', array($this)); }       $this-&gt;showCore; if (Event::handle('StartShowFooter', array($this))) {

...

Examples
class ExamplePlugin extends Plugin { public function onStartShowHead ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 193) ...    *     * @return nothing */   function showStylesheets {       if (Event::handle('StartShowStyles', array($this))) {

// Use old name for StatusNet for compatibility on events

if (Event::handle('StartShowStatusNetStyles', array($this)) &amp;&amp;               Event::handle('StartShowLaconicaStyles', array($this))) {

...

Examples
class ExamplePlugin extends Plugin { public function onStartShowStyles ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 197) ...   {        if (Event::handle('StartShowStyles', array($this))) {

// Use old name for StatusNet for compatibility on events

if (Event::handle('StartShowStatusNetStyles', array($this)) &amp;&amp;               Event::handle('StartShowLaconicaStyles', array($this))) { $this-&gt;cssLink('css/display.css',null,'screen, projection, tv'); if (common_config('site', 'mobile')) { // TODO: &quot;handheld&quot; CSS for other mobile devices $this-&gt;cssLink('css/mobile.css','base','only screen and (max-device-width: 480px)'); // Mobile WebKit

...

Examples
class ExamplePlugin extends Plugin { public function onStartShowStatusNetStyles ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 198) ...       if (Event::handle('StartShowStyles', array($this))) {

// Use old name for StatusNet for compatibility on events

if (Event::handle('StartShowStatusNetStyles', array($this)) &amp;&amp;               Event::handle('StartShowLaconicaStyles', array($this))) { $this-&gt;cssLink('css/display.css',null,'screen, projection, tv'); if (common_config('site', 'mobile')) { // TODO: &quot;handheld&quot; CSS for other mobile devices $this-&gt;cssLink('css/mobile.css','base','only screen and (max-device-width: 480px)'); // Mobile WebKit }

...

Examples
class ExamplePlugin extends Plugin { public function onStartShowLaconicaStyles ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 205) ...               if (common_config('site', 'mobile')) { // TODO: &quot;handheld&quot; CSS for other mobile devices $this-&gt;cssLink('css/mobile.css','base','only screen and (max-device-width: 480px)'); // Mobile WebKit }               $this-&gt;cssLink('css/print.css','base','print'); Event::handle('EndShowStatusNetStyles', array($this)); Event::handle('EndShowLaconicaStyles', array($this)); }

if (Event::handle('StartShowUAStyles', array($this))) { $this-&gt;comment('[if IE]&gt;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; '.

...

Examples
class ExamplePlugin extends Plugin { public function onEndShowStatusNetStyles ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 206) ...                   // TODO: &quot;handheld&quot; CSS for other mobile devices $this-&gt;cssLink('css/mobile.css','base','only screen and (max-device-width: 480px)'); // Mobile WebKit }               $this-&gt;cssLink('css/print.css','base','print'); Event::handle('EndShowStatusNetStyles', array($this)); Event::handle('EndShowLaconicaStyles', array($this)); }

if (Event::handle('StartShowUAStyles', array($this))) { $this-&gt;comment('[if IE]&gt;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; '.                              'href=&quot;'.theme_path('css/ie.css', 'base').'?version='.STATUSNET_VERSION.'&quot; /&gt;&lt;![endif]');

...

Examples
class ExamplePlugin extends Plugin { public function onEndShowLaconicaStyles ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 209) ...               $this-&gt;cssLink('css/print.css','base','print'); Event::handle('EndShowStatusNetStyles', array($this)); Event::handle('EndShowLaconicaStyles', array($this)); }

if (Event::handle('StartShowUAStyles', array($this))) { $this-&gt;comment('[if IE]&gt;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; '.                              'href=&quot;'.theme_path('css/ie.css', 'base').'?version='.STATUSNET_VERSION.'&quot; /&gt;&lt;![endif]'); foreach (array(6,7) as $ver) { if (file_exists(theme_file('css/ie'.$ver.'.css', 'base'))) { // Yes, IE people should be put in jail.

...

Examples
class ExamplePlugin extends Plugin { public function onStartShowUAStyles ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 221) ...                                      'href=&quot;'.theme_path('css/ie'.$ver.'.css', 'base').'?version='.STATUSNET_VERSION.'&quot; /&gt;&lt;![endif]');                    }                }                $this-&gt;comment('[if IE]&gt;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; '. 'href=&quot;'.theme_path('css/ie.css', null).'?version='.STATUSNET_VERSION.'&quot; /&gt;&lt;![endif]');               Event::handle('EndShowUAStyles', array($this));            }

if (Event::handle('StartShowDesign', array($this))) {

$user = common_current_user;

...

Examples
class ExamplePlugin extends Plugin { public function onEndShowUAStyles ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 224) ...               $this-&gt;comment('[if IE]&gt;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; '.                               'href=&quot;'.theme_path('css/ie.css', null).'?version='.STATUSNET_VERSION.'&quot; /&gt;&lt;![endif]'); Event::handle('EndShowUAStyles', array($this)); }

if (Event::handle('StartShowDesign', array($this))) {

$user = common_current_user;

if (empty($user) || $user-&gt;viewdesigns) { $design = $this-&gt;getDesign;

...

Examples
class ExamplePlugin extends Plugin { public function onStartShowDesign ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 236) ...                   if (!empty($design)) { $design-&gt;showCSS($this); }               }

Event::handle('EndShowDesign', array($this)); }           Event::handle('EndShowStyles', array($this)); }   }

...

Examples
class ExamplePlugin extends Plugin { public function onEndShowDesign ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 238) ...                   }                }

Event::handle('EndShowDesign', array($this)); }           Event::handle('EndShowStyles', array($this)); }   }

/**    * Show javascript headers

...

Examples
class ExamplePlugin extends Plugin { public function onEndShowStyles ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 249) ...    *     * @return nothing */   function showScripts {       if (Event::handle('StartShowScripts', array($this))) { if (Event::handle('StartShowJQueryScripts', array($this))) { $this-&gt;script('js/jquery.min.js'); $this-&gt;script('js/jquery.form.js'); $this-&gt;script('js/jquery.joverlay.min.js'); Event::handle('EndShowJQueryScripts', array($this));

...

Examples
class ExamplePlugin extends Plugin { public function onStartShowScripts ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 250) ...    * @return nothing */   function showScripts {       if (Event::handle('StartShowScripts', array($this))) { if (Event::handle('StartShowJQueryScripts', array($this))) { $this-&gt;script('js/jquery.min.js'); $this-&gt;script('js/jquery.form.js'); $this-&gt;script('js/jquery.joverlay.min.js'); Event::handle('EndShowJQueryScripts', array($this)); }

...

Examples
class ExamplePlugin extends Plugin { public function onStartShowJQueryScripts ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 254) ...       if (Event::handle('StartShowScripts', array($this))) { if (Event::handle('StartShowJQueryScripts', array($this))) { $this-&gt;script('js/jquery.min.js'); $this-&gt;script('js/jquery.form.js'); $this-&gt;script('js/jquery.joverlay.min.js'); Event::handle('EndShowJQueryScripts', array($this)); }           if (Event::handle('StartShowStatusNetScripts', array($this)) &amp;&amp;                Event::handle('StartShowLaconicaScripts', array($this))) { $this-&gt;script('js/xbImportNode.js'); $this-&gt;script('js/util.js');

...

Examples
class ExamplePlugin extends Plugin { public function onEndShowJQueryScripts ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 256) ...               $this-&gt;script('js/jquery.min.js'); $this-&gt;script('js/jquery.form.js'); $this-&gt;script('js/jquery.joverlay.min.js'); Event::handle('EndShowJQueryScripts', array($this)); }           if (Event::handle('StartShowStatusNetScripts', array($this)) &amp;&amp;                Event::handle('StartShowLaconicaScripts', array($this))) { $this-&gt;script('js/xbImportNode.js'); $this-&gt;script('js/util.js'); // Frame-busting code to avoid clickjacking attacks. $this-&gt;element('script', array('type' =&gt; 'text/javascript'),

...

Examples
class ExamplePlugin extends Plugin { public function onStartShowStatusNetScripts ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 257) ...               $this-&gt;script('js/jquery.form.js'); $this-&gt;script('js/jquery.joverlay.min.js'); Event::handle('EndShowJQueryScripts', array($this)); }           if (Event::handle('StartShowStatusNetScripts', array($this)) &amp;&amp;                Event::handle('StartShowLaconicaScripts', array($this))) { $this-&gt;script('js/xbImportNode.js'); $this-&gt;script('js/util.js'); // Frame-busting code to avoid clickjacking attacks. $this-&gt;element('script', array('type' =&gt; 'text/javascript'),                              'if (window.top !== window.self) { window.top.location.href = window.self.location.href; }');

...

Examples
class ExamplePlugin extends Plugin { public function onStartShowLaconicaScripts ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 263) ...               $this-&gt;script('js/xbImportNode.js'); $this-&gt;script('js/util.js'); // Frame-busting code to avoid clickjacking attacks. $this-&gt;element('script', array('type' =&gt; 'text/javascript'),                              'if (window.top !== window.self) { window.top.location.href = window.self.location.href; }'); Event::handle('EndShowStatusNetScripts', array($this)); Event::handle('EndShowLaconicaScripts', array($this)); }           Event::handle('EndShowScripts', array($this)); }   }

...

Examples
class ExamplePlugin extends Plugin { public function onEndShowStatusNetScripts ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 264) ...               $this-&gt;script('js/util.js'); // Frame-busting code to avoid clickjacking attacks. $this-&gt;element('script', array('type' =&gt; 'text/javascript'),                              'if (window.top !== window.self) { window.top.location.href = window.self.location.href; }'); Event::handle('EndShowStatusNetScripts', array($this)); Event::handle('EndShowLaconicaScripts', array($this)); }           Event::handle('EndShowScripts', array($this)); }   }

...

Examples
class ExamplePlugin extends Plugin { public function onEndShowLaconicaScripts ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 266) ...               $this-&gt;element('script', array('type' =&gt; 'text/javascript'),                               'if (window.top !== window.self) { window.top.location.href = window.self.location.href; }'); Event::handle('EndShowStatusNetScripts', array($this)); Event::handle('EndShowLaconicaScripts', array($this)); }           Event::handle('EndShowScripts', array($this)); }   }

/**    * Show OpenSearch headers

...

Examples
class ExamplePlugin extends Plugin { public function onEndShowScripts ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 102) ...           $this-&gt;startHTML; Event::handle('EndShowHTML', array($this)); }       if (Event::handle('StartShowHead', array($this))) { $this-&gt;showHead; Event::handle('EndShowHead', array($this)); }       if (Event::handle('StartShowBody', array($this))) { $this-&gt;showBody; Event::handle('EndShowBody', array($this)); }

... File: lib/action.php (line 347) ...                                                                   'class' =&gt; 'user_in')                            : array('id' =&gt; $this-&gt;trimmed('action'))); $this-&gt;elementStart('div', array('id' =&gt; 'wrap')); if (Event::handle('StartShowHeader', array($this))) { $this-&gt;showHeader; Event::handle('EndShowHeader', array($this)); }       $this-&gt;showCore; if (Event::handle('StartShowFooter', array($this))) { $this-&gt;showFooter; Event::handle('EndShowFooter', array($this));

...

Examples
class ExamplePlugin extends Plugin { public function onEndShowHead ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: actions/attachment_thumbnail.php (line 61) ...    *     * @return nothing */   function showPage {       if (Event::handle('StartShowBody', array($this))) { $this-&gt;showCore; Event::handle('EndShowBody', array($this)); }   }

... File: actions/attachment_ajax.php (line 55) ...    *     * @return nothing */   function showPage {       if (Event::handle('StartShowBody', array($this))) { $this-&gt;showCore; Event::handle('EndShowBody', array($this)); }   }

... File: lib/action.php (line 104) ...       }        if (Event::handle('StartShowHead', array($this))) { $this-&gt;showHead; Event::handle('EndShowHead', array($this)); }       if (Event::handle('StartShowBody', array($this))) { $this-&gt;showBody; Event::handle('EndShowBody', array($this)); }       if (Event::handle('StartEndHTML', array($this))) { $this-&gt;endHTML;

...

Examples
class ExamplePlugin extends Plugin { public function onStartShowBody ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 345) ...   {        $this-&gt;elementStart('body', (common_current_user) ? array('id' =&gt; $this-&gt;trimmed('action'), 'class' =&gt; 'user_in')                           : array('id' =&gt; $this-&gt;trimmed('action'))); $this-&gt;elementStart('div', array('id' =&gt; 'wrap')); if (Event::handle('StartShowHeader', array($this))) { $this-&gt;showHeader; Event::handle('EndShowHeader', array($this)); }       $this-&gt;showCore; if (Event::handle('StartShowFooter', array($this))) {

...

Examples
class ExamplePlugin extends Plugin { public function onStartShowHeader ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 388) ...    */    function showLogo {       $this-&gt;elementStart('address', array('id' =&gt; 'site_contact', 'class' =&gt; 'vcard')); if (Event::handle('StartAddressData', array($this))) { $this-&gt;elementStart('a', array('class' =&gt; 'url home bookmark', 'href' =&gt; common_local_url('public'))); if (common_config('site', 'logo') || file_exists(theme_file('logo.png'))) { $this-&gt;element('img', array('class' =&gt; 'logo photo', 'src' =&gt; (common_config('site', 'logo')) ? common_config('site', 'logo') : theme_path('logo.png'),

...

Examples
class ExamplePlugin extends Plugin { public function onStartAddressData ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 398) ...                                           'src' =&gt; (common_config('site', 'logo')) ? common_config('site', 'logo') : theme_path('logo.png'), 'alt' =&gt; common_config('site', 'name'))); }           $this-&gt;element('span', array('class' =&gt; 'fn org'), common_config('site', 'name')); $this-&gt;elementEnd('a'); Event::handle('EndAddressData', array($this)); }       $this-&gt;elementEnd('address'); }

/**

...

Examples
class ExamplePlugin extends Plugin { public function onEndAddressData ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 424) ...

$this-&gt;elementStart('dl', array('id' =&gt; 'site_nav_global_primary')); $this-&gt;element('dt', null, _('Primary site navigation')); $this-&gt;elementStart('dd'); $this-&gt;elementStart('ul', array('class' =&gt; 'nav')); if (Event::handle('StartPrimaryNav', array($this))) { if ($user) { $this-&gt;menuItem(common_local_url('all', array('nickname' =&gt; $user-&gt;nickname)),                               _('Home'), _('Personal profile and friends timeline'), false, 'nav_home'); $this-&gt;menuItem(common_local_url('profilesettings'),                               _('Account'), _('Change your email, avatar, password, profile'), false, 'nav_account');

...

Examples
class ExamplePlugin extends Plugin { public function onStartPrimaryNav ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 463) ...                           _('Help'), _('Help me!'), false, 'nav_help');            if ($user || !common_config('site', 'private')) {                $this-&gt;menuItem(common_local_url('peoplesearch'), _('Search'), _('Search for people or text'), false, 'nav_search');           }            Event::handle('EndPrimaryNav', array($this));        }        $this-&gt;elementEnd('ul');        $this-&gt;elementEnd('dd');        $this-&gt;elementEnd('dl');    }

...

Examples
class ExamplePlugin extends Plugin { public function onEndPrimaryNav ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 347) ...                                                                   'class' =&gt; 'user_in')                            : array('id' =&gt; $this-&gt;trimmed('action'))); $this-&gt;elementStart('div', array('id' =&gt; 'wrap')); if (Event::handle('StartShowHeader', array($this))) { $this-&gt;showHeader; Event::handle('EndShowHeader', array($this)); }       $this-&gt;showCore; if (Event::handle('StartShowFooter', array($this))) { $this-&gt;showFooter; Event::handle('EndShowFooter', array($this));

...

Examples
class ExamplePlugin extends Plugin { public function onEndShowHeader ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 525) ...    * @return nothing */   function showCore {       $this-&gt;elementStart('div', array('id' =&gt; 'core')); if (Event::handle('StartShowLocalNavBlock', array($this))) { $this-&gt;showLocalNavBlock; Event::handle('EndShowLocalNavBlock', array($this)); }       if (Event::handle('StartShowContentBlock', array($this))) { $this-&gt;showContentBlock;

...

Examples
class ExamplePlugin extends Plugin { public function onStartShowLocalNavBlock ($publicaction) { //do something } }

Arguments
1: PublicGroupNav

Related Code
File: lib/publicgroupnav.php (line 77) ...   {        $action_name = $this-&gt;action-&gt;trimmed('action');

$this-&gt;action-&gt;elementStart('ul', array('class' =&gt; 'nav'));

if (Event::handle('StartPublicGroupNav', array($this))) { $this-&gt;out-&gt;menuItem(common_local_url('public'), _('Public'),               _('Public timeline'), $action_name == 'public', 'nav_timeline_public');

$this-&gt;out-&gt;menuItem(common_local_url('groups'), _('Groups'),               _('User groups'), $action_name == 'groups', 'nav_groups');

...

Examples
class ExamplePlugin extends Plugin { public function onStartPublicGroupNav ($publicgroupnav) { //do something } }

Arguments
1: PublicGroupNav

Related Code
File: lib/publicgroupnav.php (line 95) ...           }

$this-&gt;out-&gt;menuItem(common_local_url('favorited'), _('Popular'),               _(&quot;Popular notices&quot;), $action_name == 'favorited', 'nav_timeline_favorited');

Event::handle('EndPublicGroupNav', array($this)); }       $this-&gt;action-&gt;elementEnd('ul'); } }

...

Examples
class ExamplePlugin extends Plugin { public function onEndPublicGroupNav ($publicgroupnav) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 527) ...   function showCore {       $this-&gt;elementStart('div', array('id' =&gt; 'core')); if (Event::handle('StartShowLocalNavBlock', array($this))) { $this-&gt;showLocalNavBlock; Event::handle('EndShowLocalNavBlock', array($this)); }       if (Event::handle('StartShowContentBlock', array($this))) { $this-&gt;showContentBlock; Event::handle('EndShowContentBlock', array($this)); }

...

Examples
class ExamplePlugin extends Plugin { public function onEndShowLocalNavBlock ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: actions/attachment_ajax.php (line 76) ...    * @return nothing */   function showCore {       $this-&gt;elementStart('div', array('id' =&gt; 'core')); if (Event::handle('StartShowContentBlock', array($this))) { $this-&gt;showContentBlock; Event::handle('EndShowContentBlock', array($this)); }       $this-&gt;elementEnd('div'); }

... File: lib/action.php (line 529) ...       $this-&gt;elementStart('div', array('id' =&gt; 'core')); if (Event::handle('StartShowLocalNavBlock', array($this))) { $this-&gt;showLocalNavBlock; Event::handle('EndShowLocalNavBlock', array($this)); }       if (Event::handle('StartShowContentBlock', array($this))) { $this-&gt;showContentBlock; Event::handle('EndShowContentBlock', array($this)); }       $this-&gt;showAside; $this-&gt;elementEnd('div');

...

Examples
class ExamplePlugin extends Plugin { public function onStartShowContentBlock ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: actions/attachment_ajax.php (line 78) ...   function showCore {       $this-&gt;elementStart('div', array('id' =&gt; 'core')); if (Event::handle('StartShowContentBlock', array($this))) { $this-&gt;showContentBlock; Event::handle('EndShowContentBlock', array($this)); }       $this-&gt;elementEnd('div'); } }

... File: lib/action.php (line 531) ...           $this-&gt;showLocalNavBlock; Event::handle('EndShowLocalNavBlock', array($this)); }       if (Event::handle('StartShowContentBlock', array($this))) { $this-&gt;showContentBlock; Event::handle('EndShowContentBlock', array($this)); }       $this-&gt;showAside; $this-&gt;elementEnd('div'); }

...

Examples
class ExamplePlugin extends Plugin { public function onEndShowContentBlock ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 654) ...

function showAside {       $this-&gt;elementStart('div', array('id' =&gt; 'aside_primary', 'class' =&gt; 'aside')); if (Event::handle('StartShowExportData', array($this))) { $this-&gt;showExportData; Event::handle('EndShowExportData', array($this)); }       if (Event::handle('StartShowSections', array($this))) { $this-&gt;showSections;

...

Examples
class ExamplePlugin extends Plugin { public function onStartShowExportData ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 656) ...   {        $this-&gt;elementStart('div', array('id' =&gt; 'aside_primary', 'class' =&gt; 'aside')); if (Event::handle('StartShowExportData', array($this))) { $this-&gt;showExportData; Event::handle('EndShowExportData', array($this)); }       if (Event::handle('StartShowSections', array($this))) { $this-&gt;showSections; Event::handle('EndShowSections', array($this)); }

...

Examples
class ExamplePlugin extends Plugin { public function onEndShowExportData ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 658) ...                                        'class' =&gt; 'aside')); if (Event::handle('StartShowExportData', array($this))) { $this-&gt;showExportData; Event::handle('EndShowExportData', array($this)); }       if (Event::handle('StartShowSections', array($this))) { $this-&gt;showSections; Event::handle('EndShowSections', array($this)); }       $this-&gt;elementEnd('div'); }

...

Examples
class ExamplePlugin extends Plugin { public function onStartShowSections ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 660) ...           $this-&gt;showExportData; Event::handle('EndShowExportData', array($this)); }       if (Event::handle('StartShowSections', array($this))) { $this-&gt;showSections; Event::handle('EndShowSections', array($this)); }       $this-&gt;elementEnd('div'); }

/**

...

Examples
class ExamplePlugin extends Plugin { public function onEndShowSections ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 350) ...       if (Event::handle('StartShowHeader', array($this))) { $this-&gt;showHeader; Event::handle('EndShowHeader', array($this)); }       $this-&gt;showCore; if (Event::handle('StartShowFooter', array($this))) { $this-&gt;showFooter; Event::handle('EndShowFooter', array($this)); }       $this-&gt;elementEnd('div'); $this-&gt;elementEnd('body');

...

Examples
class ExamplePlugin extends Plugin { public function onStartShowFooter ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 716) ...   {        $this-&gt;elementStart('dl', array('id' =&gt; 'site_nav_global_secondary')); $this-&gt;element('dt', null, _('Secondary site navigation')); $this-&gt;elementStart('dd', null); $this-&gt;elementStart('ul', array('class' =&gt; 'nav')); if (Event::handle('StartSecondaryNav', array($this))) { $this-&gt;menuItem(common_local_url('doc', array('title' =&gt; 'help')),                           _('Help')); $this-&gt;menuItem(common_local_url('doc', array('title' =&gt; 'about')),                           _('About')); $this-&gt;menuItem(common_local_url('doc', array('title' =&gt; 'faq')),

...

Examples
class ExamplePlugin extends Plugin { public function onStartSecondaryNav ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 736) ...                           _('Source'));            $this-&gt;menuItem(common_local_url('doc', array('title' =&gt; 'contact')), _('Contact'));           $this-&gt;menuItem(common_local_url('doc', array('title' =&gt; 'badge')), _('Badge'));           Event::handle('EndSecondaryNav', array($this));        }        $this-&gt;elementEnd('ul');        $this-&gt;elementEnd('dd');        $this-&gt;elementEnd('dl');    }

...

Examples
class ExamplePlugin extends Plugin { public function onEndSecondaryNav ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 352) ...           Event::handle('EndShowHeader', array($this)); }       $this-&gt;showCore; if (Event::handle('StartShowFooter', array($this))) { $this-&gt;showFooter; Event::handle('EndShowFooter', array($this)); }       $this-&gt;elementEnd('div'); $this-&gt;elementEnd('body'); }

...

Examples
class ExamplePlugin extends Plugin { public function onEndShowFooter ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: actions/attachment_thumbnail.php (line 63) ...    */    function showPage {       if (Event::handle('StartShowBody', array($this))) { $this-&gt;showCore; Event::handle('EndShowBody', array($this)); }   }

/**    * Show core.

... File: actions/attachment_ajax.php (line 57) ...    */    function showPage {       if (Event::handle('StartShowBody', array($this))) { $this-&gt;showCore; Event::handle('EndShowBody', array($this)); }   }

function handle($args) {

... File: lib/action.php (line 106) ...           $this-&gt;showHead; Event::handle('EndShowHead', array($this)); }       if (Event::handle('StartShowBody', array($this))) { $this-&gt;showBody; Event::handle('EndShowBody', array($this)); }       if (Event::handle('StartEndHTML', array($this))) { $this-&gt;endHTML; Event::handle('EndEndHTML', array($this)); }

...

Examples
class ExamplePlugin extends Plugin { public function onEndShowBody ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 108) ...       }        if (Event::handle('StartShowBody', array($this))) { $this-&gt;showBody; Event::handle('EndShowBody', array($this)); }       if (Event::handle('StartEndHTML', array($this))) { $this-&gt;endHTML; Event::handle('EndEndHTML', array($this)); }   }

...

Examples
class ExamplePlugin extends Plugin { public function onStartEndHTML ($publicaction) { //do something } }

Arguments
1: PublicAction

Related Code
File: lib/action.php (line 110) ...           $this-&gt;showBody; Event::handle('EndShowBody', array($this)); }       if (Event::handle('StartEndHTML', array($this))) { $this-&gt;endHTML; Event::handle('EndEndHTML', array($this)); }   }

/**    * Show head, a template method.

...

Examples
class ExamplePlugin extends Plugin { public function onEndEndHTML ($publicaction) { //do something } }

Arguments
1: LoginAction

Related Code
File: lib/action.php (line 613) ...

$this-&gt;elementStart('dl', array('id' =&gt; 'page_notice', 'class' =&gt; 'system_notice')); $this-&gt;element('dt', null, _('Page notice')); $this-&gt;elementStart('dd'); if (Event::handle('StartShowPageNotice', array($this))) { $this-&gt;showPageNotice; Event::handle('EndShowPageNotice', array($this)); }           $this-&gt;elementEnd('dd'); $this-&gt;elementEnd('dl');

...

Examples
class ExamplePlugin extends Plugin { public function onStartShowPageNotice ($loginaction) { //do something } }

Arguments
1: LoginAction

Related Code
File: lib/action.php (line 615) ...                                           'class' =&gt; 'system_notice')); $this-&gt;element('dt', null, _('Page notice')); $this-&gt;elementStart('dd'); if (Event::handle('StartShowPageNotice', array($this))) { $this-&gt;showPageNotice; Event::handle('EndShowPageNotice', array($this)); }           $this-&gt;elementEnd('dd'); $this-&gt;elementEnd('dl'); }   }

...

Examples
class ExamplePlugin extends Plugin { public function onEndShowPageNotice ($loginaction) { //do something } }

Arguments
1: PersonalGroupNav

Related Code
File: lib/personalgroupnav.php (line 96) ...           $user_profile = false; }

$this-&gt;out-&gt;elementStart('ul', array('class' =&gt; 'nav'));

if (Event::handle('StartPersonalGroupNav', array($this))) { $this-&gt;out-&gt;menuItem(common_local_url('all', array('nickname' =&gt;                                                          $nickname)),                             _('Personal'),                             sprintf(_('%s and friends'), (($user_profile &amp;&amp; $user_profile-&gt;fullname) ? $user_profile-&gt;fullname : $nickname)),                             $action == 'all', 'nav_timeline_personal');

...

Examples
class ExamplePlugin extends Plugin { public function onStartPersonalGroupNav ($personalgroupnav) { //do something } }

Arguments
1: PersonalGroupNav

Related Code
File: lib/personalgroupnav.php (line 133) ...                                                                        $nickname)), _('Outbox'), _('Your sent messages'), $action == 'outbox');           }            Event::handle('EndPersonalGroupNav', array($this));        }        $this-&gt;out-&gt;elementEnd('ul');    } }

...

Examples
class ExamplePlugin extends Plugin { public function onEndPersonalGroupNav ($personalgroupnav) { //do something } }

Arguments
1: ProfilesettingsAction

Related Code
File: actions/profilesettings.php (line 96) ...       $this-&gt;element('legend', null, _('Profile information')); $this-&gt;hidden('token', common_session_token);

// too much common patterns here... abstractable? $this-&gt;elementStart('ul', 'form_data'); if (Event::handle('StartProfileFormData', array($this))) { $this-&gt;elementStart('li'); $this-&gt;input('nickname', _('Nickname'),                        ($this-&gt;arg('nickname')) ? $this-&gt;arg('nickname') : $profile-&gt;nickname,                         _('1-64 lowercase letters or numbers, no punctuation or spaces')); $this-&gt;elementEnd('li');

...

Examples
class ExamplePlugin extends Plugin { public function onStartProfileFormData ($profilesettingsaction) { //do something } }

Arguments
1: ProfilesettingsAction

Related Code
File: actions/profilesettings.php (line 121) ...           $this-&gt;elementStart('li'); $this-&gt;input('location', _('Location'),                        ($this-&gt;arg('location')) ? $this-&gt;arg('location') : $profile-&gt;location,                         _('Where you are, like &quot;City, State (or Region), Country&quot;')); $this-&gt;elementEnd('li'); Event::handle('EndProfileFormData', array($this)); $this-&gt;elementStart('li'); $this-&gt;input('tags', _('Tags'),                        ($this-&gt;arg('tags')) ? $this-&gt;arg('tags') : implode(' ', $user-&gt;getSelfTags),                         _('Tags for yourself (letters, numbers, -, ., and _), comma- or space- separated')); $this-&gt;elementEnd('li');

...

Examples
class ExamplePlugin extends Plugin { public function onEndProfileFormData ($profilesettingsaction) { //do something } }

Arguments
1: ProfilesettingsAction

Related Code
File: actions/profilesettings.php (line 177) ...           $this-&gt;showForm(_('There was a problem with your session token. '.                       'Try again, please.')); return; }

if (Event::handle('StartProfileSaveForm', array($this))) {

$nickname = $this-&gt;trimmed('nickname'); $fullname = $this-&gt;trimmed('fullname'); $homepage = $this-&gt;trimmed('homepage'); $bio = $this-&gt;trimmed('bio');

...

Examples
class ExamplePlugin extends Plugin { public function onStartProfileSaveForm ($profilesettingsaction) { //do something } }

Arguments
1: ProfilesettingsAction

Related Code
File: actions/profilesettings.php (line 315) ...               $this-&gt;serverError(_('Couldn\'t save tags.')); return; }

$user-&gt;query('COMMIT'); Event::handle('EndProfileSaveForm', array($this)); common_broadcast_profile($profile);

$this-&gt;showForm(_('Settings saved.'), true);

}

...

Examples
class ExamplePlugin extends Plugin { public function onEndProfileSaveForm ($profilesettingsaction) { //do something } }

Arguments
1: SubGroupNav

Related Code
File: lib/subgroupnav.php (line 77) ...       $cur = common_current_user; $action = $this-&gt;action-&gt;trimmed('action');

$this-&gt;out-&gt;elementStart('ul', array('class' =&gt; 'nav'));

if (Event::handle('StartSubGroupNav', array($this))) {

$this-&gt;out-&gt;menuItem(common_local_url('subscriptions', array('nickname' =&gt;                                                       $this-&gt;user-&gt;nickname)),                                 _('Subscriptions'),

...

Examples
class ExamplePlugin extends Plugin { public function onStartSubGroupNav ($subgroupnav) { //do something } }

Arguments
1: SubGroupNav

Related Code
File: lib/subgroupnav.php (line 112) ...                                            common_config('site', 'name')),                                     $action == 'invite',                                     'nav_invite'); }

Event::handle('EndSubGroupNav', array($this)); }

$this-&gt;out-&gt;elementEnd('ul'); } }

...

Examples
class ExamplePlugin extends Plugin { public function onEndSubGroupNav ($subgroupnav) { //do something } }

Arguments
1: Notice

Related Code
File: classes/Notice.php (line 203) ...       if (!empty($notice-&gt;reply_to)) { $reply = Notice::staticGet('id', $notice-&gt;reply_to); $notice-&gt;conversation = $reply-&gt;conversation; }

if (Event::handle('StartNoticeSave', array(&amp;$notice))) {

// XXX: some of these functions write to the DB

$notice-&gt;query('BEGIN');

... File: scripts/twitterstatusfetcher.php (line 251) ...           $notice-&gt;rendered   = common_render_content($notice-&gt;content, $notice); $notice-&gt;source    = 'twitter'; $notice-&gt;reply_to  = null; // XXX: lookup reply $notice-&gt;is_local  = Notice::GATEWAY;

if (Event::handle('StartNoticeSave', array(&amp;$notice))) { $id = $notice-&gt;insert; Event::handle('EndNoticeSave', array($notice)); }       }

...

Examples
class ExamplePlugin extends Plugin { public function onStartNoticeSave ($notice) { //do something } }

Arguments
1: RegisterAction

Related Code
File: actions/register.php (line 298) ...       return ($user !== false); }

// overrrided to add entry-title class function showPageTitle { if (Event::handle('StartShowPageTitle', array($this))) { $this-&gt;element('h1', array('class' =&gt; 'entry-title'), $this-&gt;title); }   }

// overrided to add hentry, and content-inner class

...

Examples
class ExamplePlugin extends Plugin { public function onStartShowPageTitle ($registeraction) { //do something } }

Arguments
1: RegisterAction

Related Code
File: actions/register.php (line 423) ...       if ($this-&gt;code) { $this-&gt;hidden('code', $this-&gt;code); }

$this-&gt;elementStart('ul', 'form_data'); if (Event::handle('StartRegistrationFormData', array($this))) { $this-&gt;elementStart('li'); $this-&gt;input('nickname', _('Nickname'), $this-&gt;trimmed('nickname'),                        _('1-64 lowercase letters or numbers, '. 'no punctuation or spaces. Required.')); $this-&gt;elementEnd('li');

...

Examples
class ExamplePlugin extends Plugin { public function onStartRegistrationFormData ($registeraction) { //do something } }

Arguments
1: RegisterAction

Related Code
File: actions/register.php (line 471) ...           $this-&gt;input('location', _('Location'),                         $this-&gt;trimmed('location'),                         _('Where you are, like &quot;City, '. 'State (or Region), Country&quot;')); $this-&gt;elementEnd('li'); Event::handle('EndRegistrationFormData', array($this)); $this-&gt;elementStart('li', array('id' =&gt; 'settings_rememberme')); $this-&gt;checkbox('rememberme', _('Remember me'),                           $this-&gt;boolean('rememberme'),                            _('Automatically login in the future; '. 'not for shared computers!'));

...

Examples
class ExamplePlugin extends Plugin { public function onEndRegistrationFormData ($registeraction) { //do something } }

Arguments
1: RegisterAction

Related Code
File: actions/register.php (line 154) ...    * @return void */

function tryRegister {       if (Event::handle('StartRegistrationTry', array($this))) { $token = $this-&gt;trimmed('token'); if (!$token || $token != common_session_token) { $this-&gt;showForm(_('There was a problem with your session token. '.                                 'Try again, please.')); return;

...

Examples
class ExamplePlugin extends Plugin { public function onStartRegistrationTry ($registeraction) { //do something } }

Arguments
1: RegisterAction

Related Code
File: actions/register.php (line 249) ...               if ($this-&gt;boolean('rememberme')) { common_debug('Adding rememberme cookie for ' . $nickname); common_rememberme($user); }

Event::handle('EndRegistrationTry', array($this));

// Re-init language env in case it changed (not yet, but soon) common_init_language; $this-&gt;showSuccess; } else {

...

Examples
class ExamplePlugin extends Plugin { public function onEndRegistrationTry ($registeraction) { //do something } }