PHPonTrax
[ class tree: PHPonTrax ] [ index: PHPonTrax ] [ all elements ]

Procedural File: helpers.php

Source Location: /vendor/trax/action_view/helpers.php



Classes:

Helpers
Basic helper functions


Page Details:

File containing the Helpers class and associated functions

(PHP 5)




Tags:

filesource:  Source Code for this file
copyright:  

(c) 2005 John Peterson

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

version:  $Id$








cdata_section [line 349]

void cdata_section( )

Create a Helpers object and call its cdata_section() method



[ Top ]



content_tag [line 321]

string content_tag( string $name, string $content, string[] $options)

Create a Helpers object and call its content_tag() method



Tags:

return:  Text wrapped with tag and attributes, followed by "\n"
see:  Helpers::content_tag()


Parameters

string   $name   Tag to wrap around $content
string   $content   Text to put between tags
string[]   $options   Tag attributes to apply
[ Top ]



tag [line 340]

string tag( string $name, string[] $options, boolean $open )

Create a Helpers object and call its tag() method



Tags:

return:  The tag, followed by "\n"
see:  Helpers::tag()


Parameters

string   $name   Tag name
string[]   $options   Tag attributes to apply
boolean   $open   
  • true => make opening tag (end with '>')
  • false => make self-terminating tag (end with ' \>')
[ Top ]



Documentation generated on Thu, 04 May 2006 19:47:44 -0600 by phpDocumentor 1.3.0RC4