API15

JApplication/dispatch: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Dispatch the applicaiton. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>...
 
m preparing for archive only
 
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:
Dispatch the applicaiton.
Dispatch the applicaiton.


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JApplication/dispatch|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JApplication/dispatch}}
 
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 29: Line 27:
===Source Body===
===Source Body===
<source lang="php">
<source lang="php">
public function dispatch($component)
function dispatch($component)
{
{
         $document = &JFactory::getDocument();
         $document =& JFactory::getDocument();


         $document->setTitle($this->getCfg('sitename'). ' - ' .JText::_('Administration'));
         $document->setTitle( $this->getCfg('sitename' ). ' - ' .JText::_( 'Administration' ));
         $document->setDescription($this->getCfg('MetaDesc'));
         $document->setDescription( $this->getCfg('MetaDesc') );


         $contents = JComponentHelper::renderComponent($component);
         $contents = JComponentHelper::renderComponent($component);
         $document->setBuffer($contents, 'component');
         $document->setBuffer($contents, 'component');
        // Trigger the onAfterDispatch event.
        JPluginHelper::importPlugin('system');
        $this->triggerEvent('onAfterDispatch');
}
}
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JApplication/dispatch|Edit See Also]]<nowiki>]</nowiki>
<! removed transcluded page call, red link never existed >
</span>
{{SeeAlso:JApplication/dispatch}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=dispatch
  category=dispatch
  category=JApplication
  category=JApplication
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>
[[Category:Archived pages API15]]

Latest revision as of 00:16, 25 March 2017

Description

Dispatch the applicaiton.


<! removed transcluded page call, red link never existed >

Syntax

dispatch($component)
Parameter Name Default Value Description
$component

Defined in

libraries/joomla/application/application.php

Importing

jimport( 'joomla.application.application' );

Source Body

function dispatch($component)
{
        $document =& JFactory::getDocument();

        $document->setTitle( $this->getCfg('sitename' ). ' - ' .JText::_( 'Administration' ));
        $document->setDescription( $this->getCfg('MetaDesc') );

        $contents = JComponentHelper::renderComponent($component);
        $document->setBuffer($contents, 'component');
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples