cakephp-1.3 > Xml :: __construct()
Xml
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
__construct
line:854 at
/cake/libs/xml.php
Constructor. Sets up the XML parser with options, gives it this object as
its XML object, and sets some variables.
Method
__construct
($input = null, $options = array())
Parameters
Parameter | Type | Comment | Default |
---|---|---|---|
$input | mixed | optional The content with which this XML document should be initialized. Can be a string, array or object. If a string is specified, it may be a literal XML document, or a URL or file path to read from. | null |
$options | array | optional Options to set up with, for valid options see above: | array() |
Return
Comment
Constructor. Sets up the XML parser with options, gives it this object as
its XML object, and sets some variables.
### Options
- 'root': The name of the root element, defaults to '#document'
- 'version': The XML version, defaults to '1.0'
- 'encoding': Document encoding, defaults to 'UTF-8'
- 'namespaces': An array of namespaces (as strings) used in this document
- 'format': Specifies the format this document converts to when parsed or
rendered out as text, either 'attributes' or 'tags', defaults to 'attributes'
- 'tags': An array specifying any tag-specific formatting options, indexed
by tag name. See XmlNode::normalize().
- 'slug': A boolean to indicate whether or not you want the string version of the XML document
to have its tags run through Inflector::slug(). Defaults to true
@param mixed $input The content with which this XML document should be initialized. Can be a
string, array or object. If a string is specified, it may be a literal XML
document, or a URL or file path to read from.
@param array $options Options to set up with, for valid options see above:
@see XmlNode::normalize()
its XML object, and sets some variables.
### Options
- 'root': The name of the root element, defaults to '#document'
- 'version': The XML version, defaults to '1.0'
- 'encoding': Document encoding, defaults to 'UTF-8'
- 'namespaces': An array of namespaces (as strings) used in this document
- 'format': Specifies the format this document converts to when parsed or
rendered out as text, either 'attributes' or 'tags', defaults to 'attributes'
- 'tags': An array specifying any tag-specific formatting options, indexed
by tag name. See XmlNode::normalize().
- 'slug': A boolean to indicate whether or not you want the string version of the XML document
to have its tags run through Inflector::slug(). Defaults to true
@param mixed $input The content with which this XML document should be initialized. Can be a
string, array or object. If a string is specified, it may be a literal XML
document, or a URL or file path to read from.
@param array $options Options to set up with, for valid options see above:
@see XmlNode::normalize()