API15

Difference between revisions of "JView/setLayoutExt"

From Joomla! Documentation

< API15:JView
(New page: ===Description=== Allows a different extension for the layout files to be used <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JView/setLayoutExt|Edi...)
 
m (removing red link to edit, no existant pages)
(One intermediate revision by one other user not shown)
Line 3: Line 3:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JView/setLayoutExt|Edit Descripton]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
  
{{Description:JView/setLayoutExt}}
+
<! removed transcluded page call, red link never existed >
  
 
===Syntax===
 
===Syntax===
Line 32: Line 32:
 
===Source Body===
 
===Source Body===
 
<source lang="php">
 
<source lang="php">
function setLayoutExt($value)
+
function setLayoutExt( $value )
 
{
 
{
 
         $previous      = $this->_layoutExt;
 
         $previous      = $this->_layoutExt;
         if ($value = preg_replace('#[^A-Za-z0-9]#', '', trim($value))) {
+
         if ($value = preg_replace( '#[^A-Za-z0-9]#', '', trim( $value ) )) {
 
                 $this->_layoutExt = $value;
 
                 $this->_layoutExt = $value;
 
         }
 
         }
Line 43: Line 43:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JView/setLayoutExt|Edit See Also]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
{{SeeAlso:JView/setLayoutExt}}
+
<! removed transcluded page call, red link never existed >
  
 
===Examples===
 
===Examples===
Line 58: Line 58:
 
  format= ,,,
 
  format= ,,,
 
</dpl>
 
</dpl>
 +
[[Category:Archived pages API15]]

Revision as of 13:59, 12 May 2013

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Allows a different extension for the layout files to be used

[<! removed edit link to red link >]

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

Syntax[edit]

setLayoutExt($value)
Parameter Name Default Value Description
$value The extension

Returns[edit]

string Previous value

Defined in[edit]

libraries/joomla/application/component/view.php

Importing[edit]

jimport( 'joomla.application.component.view' );

Source Body[edit]

function setLayoutExt( $value )
{
        $previous       = $this->_layoutExt;
        if ($value = preg_replace( '#[^A-Za-z0-9]#', '', trim( $value ) )) {
                $this->_layoutExt = $value;
        }
        return $previous;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples[edit]

<CodeExamplesForm />