function help_ico($message, sfOutputEscaperObjectDecorator $sf_user) { if (!$sf_user->getHelpIcon()) { return ''; } return '<div class="help_ico"><span>' . $message . '</span></div>'; }
/** * Constructs a new escaping iteratoror using the escaping method and value supplied. * * @param string $escapingMethod The escaping method to use * @param Traversable $value The iterator to escape */ public function __construct($escapingMethod, Traversable $value) { // Set the original value for __call(). Set our own iterator because passing // it to IteratorIterator will lose any other method calls. parent::__construct($escapingMethod, $value); $this->iterator = new IteratorIterator($value); }
public function __construct($escapingMethod, Traversable $value) { parent::__construct($escapingMethod, $value); $this->iterator = new IteratorIterator($value); }