PEAR Manual
Prev |  | Next

# $factory->setRequired()

$factory->setRequired() -- setRequired - sets the prefix of an element to a value..

## Synopsis

``array HTML_Template_Flexy_Factory::setRequired` (array $ret, array $set [, string $format = '>span class="required"<*>/span<'])`

## Description

HTML_Element_Factory::setRequired($elements,array('name',true));

## Parameter

- `$prefix`

- `$ar`

- `$ret`

## Return value

return Array of HTML_Template_Flexy_Element's

## Throws

throws no exceptions thrown

## Note

This function can not be called statically.

Prev | Home | Next
$factory->setErrors() | Up | {variable}