Class xhrdav.ResourceBuilder

Constructor

ResourceBuilder ( ) Static
xhrdavclient resource object code »

Instance members

Instance MethodsDefined By

buildTree_ ( Array. resList ) Private xhrdav.ResourceBuilder
Building tree from response data code »
Parameters
resList : Array.
converted WebDAV collection controller object.
Convert raw data to model objects. code »
Getter rawData code »
Returns
Object
associated array of WebDAV collection.
getResources ( ) : {root:xhrdav.ResourceController/childs:Array. xhrdav.ResourceBuilder
Getter resources code »
Returns
{root:xhrdav.ResourceController/childs:Array.
stored converted resource object.
serialize ( boolean asModel ) : {root:xhrdav.Resource/childs:Array. xhrdav.ResourceBuilder
Serialize resources code »
Parameters
asModel : boolean
TRUE: xhrdav.Resource FALSE: {}.
Returns
{root:xhrdav.Resource/childs:Array.
No description.

Instance PropertiesDefined By

Static members

Static MethodsDefined By

Create Resource and returning builder code »
Parameters
rawObj : Object
Converted WebDAV resoruce json/hash object.
Returns
xhrdav.ResourceBuilder
Resource builder object.
serialize ( {root:xhrdav.ResourceController/childs:Array. resources, boolean asModel ) : {root:xhrdav.Resource|childs:Array.Static xhrdav.ResourceBuilder
Serialize resources [Class method] code »
Parameters
resources : {root:xhrdav.ResourceController/childs:Array.
No description.
asModel : boolean
TRUE: xhrdav.Resource FALSE: {}.
Returns
{root:xhrdav.Resource/childs:Array.
No description.