cakephp-1.3 > Helper :: _parseAttributes()
Helper
A
AclBase
AclBehavior
AclComponent
AclNode
AclShell
Aco
AcoAction
AjaxHelper
ApcEngine
ApiShell
App
AppController
AppController
AppHelper
AppHelper
AppModel
AppModel
Aro
AuthComponent
B
BakeShell
BakeTask
BehaviorCollection
C
Cache
CacheEngine
CacheHelper
CakeErrorController
CakeLog
CakeRoute
CakeSchema
CakeSession
CakeSocket
ClassRegistry
Component
Configure
ConnectionManager
ConsoleShell
ContainableBehavior
Controller
ControllerTask
CookieComponent
D
DataSource
DbAcl
DbAclSchema
DbConfigTask
DboMssql
DboMysql
DboMysqlBase
DboMysqli
DboOracle
DboPostgres
DboSource
DboSqlite
Debugger
Dispatcher
E
EmailComponent
ErrorHandler
ErrorHandler
ExtractTask
F
File
FileEngine
FileLog
FixtureTask
Folder
FormHelper
H
Helper
HtmlHelper
HttpSocket
I
I18n
I18nModel
i18nSchema
I18nShell
Inflector
IniAcl
J
JavascriptHelper
JqueryEngineHelper
JsBaseEngineHelper
JsHelper
L
L10n
M
MagicDb
MagicFileResource
MediaView
MemcacheEngine
Model
ModelBehavior
ModelTask
MootoolsEngineHelper
Multibyte
N
NumberHelper
O
Object
Overloadable
Overloadable
Overloadable2
Overloadable2
P
PagesController
PagesController
PaginatorHelper
Permission
PluginShortRoute
PluginTask
ProjectTask
PrototypeEngineHelper
R
RequestHandlerComponent
Router
RssHelper
S
Sanitize
Scaffold
ScaffoldView
SchemaShell
Security
SecurityComponent
SessionComponent
SessionHelper
SessionsSchema
Set
Shell
ShellDispatcher
String
T
TemplateTask
TestSuiteShell
TestTask
TextHelper
ThemeView
TimeHelper
TranslateBehavior
TreeBehavior
V
Validation
View
ViewTask
X
XcacheEngine
Xml
XmlElement
XmlHelper
XmlManager
XmlNode
XmlTextNode
_parseAttributes
line:334 at
/cake/libs/view/helper.php
Returns a space-delimited string with items of the $options array. If a
key of $options array happens to be one of:
Method
(string)
_parseAttributes
($options, $exclude = null, $insertBefore = ' ', $insertAfter = null)
Parameters
Parameter | Type | Comment | Default |
---|---|---|---|
$options | array | required Array of options. | |
$exclude | array | optional Array of options to be excluded, the options here will not be part of the return. | null |
$insertBefore | string | optional String to be inserted before options. | ' ' |
$insertAfter | string | optional String to be inserted after options. | null |
Return
stringComment
Returns a space-delimited string with items of the $options array. If a
key of $options array happens to be one of:
- 'compact'
- 'checked'
- 'declare'
- 'readonly'
- 'disabled'
- 'selected'
- 'defer'
- 'ismap'
- 'nohref'
- 'noshade'
- 'nowrap'
- 'multiple'
- 'noresize'
And its value is one of:
- '1' (string)
- 1 (integer)
- true (boolean)
- 'true' (string)
Then the value will be reset to be identical with key's name.
If the value is not one of these 3, the parameter is not output.
'escape' is a special option in that it controls the conversion of
attributes to their html-entity encoded equivalents. Set to false to disable html-encoding.
If value for any option key is set to `null` or `false`, that option will be excluded from output.
@param array $options Array of options.
@param array $exclude Array of options to be excluded, the options here will not be part of the return.
@param string $insertBefore String to be inserted before options.
@param string $insertAfter String to be inserted after options.
@return string Composed attributes.
@access public
key of $options array happens to be one of:
- 'compact'
- 'checked'
- 'declare'
- 'readonly'
- 'disabled'
- 'selected'
- 'defer'
- 'ismap'
- 'nohref'
- 'noshade'
- 'nowrap'
- 'multiple'
- 'noresize'
And its value is one of:
- '1' (string)
- 1 (integer)
- true (boolean)
- 'true' (string)
Then the value will be reset to be identical with key's name.
If the value is not one of these 3, the parameter is not output.
'escape' is a special option in that it controls the conversion of
attributes to their html-entity encoded equivalents. Set to false to disable html-encoding.
If value for any option key is set to `null` or `false`, that option will be excluded from output.
@param array $options Array of options.
@param array $exclude Array of options to be excluded, the options here will not be part of the return.
@param string $insertBefore String to be inserted before options.
@param string $insertAfter String to be inserted after options.
@return string Composed attributes.
@access public