[ Index ] |
|
Code source de Symfony 1.0.0 |
[Code source] [Imprimer] [Statistiques]
PartialHelper.
Author: | Fabien Potencier <fabien.potencier@symfony-project.com> |
Version: | SVN: $Id: PartialHelper.php 3265 2007-01-13 17:06:40Z fabien $ |
Poids: | 439 lignes (12 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
include_component_slot($name, $vars = array() X-Ref |
Evaluates and echoes a component slot. The component name is deduced from the definition of the view.yml For a variable to be accessible to the component and its partial, it has to be passed in the second argument. <b>Example:</b> <code> include_component_slot('sidebar', array('myvar' => 12345)); </code> param: string slot name param: array variables to be made accessible to the component return: void |
get_component_slot($name, $vars = array() X-Ref |
Evaluates and returns a component slot. The syntax is similar to the one of include_component_slot. <b>Example:</b> <code> echo get_component_slot('sidebar', array('myvar' => 12345)); </code> param: string slot name param: array variables to be made accessible to the component return: string result of the component execution |
include_component($moduleName, $componentName, $vars = array() X-Ref |
Evaluates and echoes a component. For a variable to be accessible to the component and its partial, it has to be passed in the third argument. <b>Example:</b> <code> include_component('mymodule', 'mypartial', array('myvar' => 12345)); </code> param: string module name param: string component name param: array variables to be made accessible to the component return: void |
get_component($moduleName, $componentName, $vars = array() X-Ref |
Evaluates and returns a component. The syntax is similar to the one of include_component. <b>Example:</b> <code> echo get_component('mymodule', 'mypartial', array('myvar' => 12345)); </code> param: string module name param: string component name param: array variables to be made accessible to the component return: string result of the component execution |
include_partial($templateName, $vars = array() X-Ref |
Evaluates and echoes a partial. The partial name is composed as follows: 'mymodule/mypartial'. The partial file name is _mypartial.php and is looked for in modules/mymodule/templates/. If the partial name doesn't include a module name, then the partial file is searched for in the caller's template/ directory. If the module name is 'global', then the partial file is looked for in myapp/templates/. For a variable to be accessible to the partial, it has to be passed in the second argument. <b>Example:</b> <code> include_partial('mypartial', array('myvar' => 12345)); </code> param: string partial name param: array variables to be made accessible to the partial return: void |
get_partial($templateName, $vars = array() X-Ref |
Evaluates and returns a partial. The syntax is similar to the one of include_partial <b>Example:</b> <code> echo get_partial('mypartial', array('myvar' => 12345)); </code> param: string partial name param: array variables to be made accessible to the partial return: string result of the partial execution |
_get_cache($cacheManager, $uri) X-Ref |
Pas de description |
_set_cache($cacheManager, $uri, $retval) X-Ref |
Pas de description |
slot($name) X-Ref |
Begins the capturing of the slot. param: string slot name return: void |
end_slot() X-Ref |
Stops the content capture and save the content in the slot. return: void |
has_slot($name) X-Ref |
Returns true if the slot exists. param: string slot name return: boolean true, if the slot exists |
include_slot($name) X-Ref |
Evaluates and echoes a slot. <b>Example:</b> <code> include_slot('navigation'); </code> param: string slot name return: void |
get_slot($name) X-Ref |
Evaluates and returns a slot. <b>Example:</b> <code> echo get_slot('navigation'); </code> param: string slot name return: string content of the slot |
Généré le : Fri Mar 16 22:42:14 2007 | par Balluche grâce à PHPXref 0.7 |