public function addDefaultParam($templateName, $param, $value)
    {
        $isDefaultForAllTemplates = ($templateName === self::TEMPLATE_ALL);

        if ($isDefaultForAllTemplates) {
            $this->defaultParameters[$param] = $value;
            $this->defaultParametersProvided = true;
        } else {
            $this->fullQualifiedPathNameWithDefaultParameters[$templateName] = array($param => $value);
        }
    }
public function addDefaultParam($templateName, $param, $value)
    {
        $isDefaultForAllTemplates = ($templateName === self::TEMPLATE_ALL);

        if ($isDefaultForAllTemplates) {
            $this->defaultParameters[$param] = $value;
            $this->defaultParametersProvided = true;
        } else {
            $this->fullQualifiedPathNameWithDefaultParameters[$templateName] = array($param => $value);
        }
    }
public function addDefaultParam ( $ templateName , $ param , $ value ) { $ isDefaultForAllTemplates = ( $ templateName === self :: TEMPLATE_ALL ) ; if ( $ isDefaultForAllTemplates ) { $ this -> defaultParameters [ $ param ] = $ value ; $ this -> defaultParametersProvided = true ; } else { $ this -> fullQualifiedPathNameWithDefaultParameters [ $ templateName ] = array ( $ param => $ value ) ; } }
Add a default parameter to use with a template.

Use this method to provide a default parameter to use when a template is
rendered. The parameter may be overridden by providing it when calling
`render()`, or by calling this method again with a null value.

The parameter will be specific to the template name provided. To make
the parameter available to any template, pass the TEMPLATE_ALL constant
for the template name.

If the default parameter existed previously, subsequent invocations with
the same template name and parameter name will overwrite.

@param string $templateName Name of template to which the param applies;
use TEMPLATE_ALL to apply to all templates.
@param string $param Param name.
@param mixed $value
Add a default parameter to use with a template .