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

Class: LayerContainer

Source Location: /coreplugins/layers/common/Layers.php

Class Overview

CwSerializable
   |
   --LayerBase
      |
      --LayerContainer

Layer with children


Variables

Methods


Child classes:

LayerGroup
Layer node
Layer
Layer linked to a MapServer layer

Inherited Variables

Inherited Methods

Class: LayerBase

LayerBase::generateMetaHash()
Fills the $metaHash property from the metadata values in metadata field
LayerBase::getAllMetadata()
Returns an associative array of all metadata variables containted in this layer.
LayerBase::getMetadata()
Returns a metadata valued from its key, or null if it does not exists.
LayerBase::unserialize()

Class: CwSerializable

CwSerializable::__construct()
Constructor
CwSerializable::copyAllVars()
Copy all properties from one object to another (overwriting previous ones)
CwSerializable::getValue()
Returns structure's property value if property exists
CwSerializable::guessClassName()
Tries to guess the class to use from the property being unserialised.
CwSerializable::unserialize()
Unserializes from a stdClass structure
CwSerializable::unserializeArray()
Returns an array of typed values
CwSerializable::unserializeObject()
Returns an unserialized object from a stdClass structure
CwSerializable::unserializeObjectMap()
Returns an array of unserialized objects from a stdClass structure
CwSerializable::unserializeStringArray()
Returns an array of typed values from a string
CwSerializable::unserializeValue()
Returns a typed value from a structure property

Class Details

[line 170]
Layer with children



[ Top ]


Class Variables

$children = array()

[line 176]

Key-values list of ChildrenSwitch



Tags:

access:  public

Type:   array


[ Top ]

$layerIds =  NULL

[line 182]

Layer Ids cache



Tags:

access:  public

Type:   array


[ Top ]



Class Methods


method getChildren [line 190]

array getChildren( string $currentSwitch, [bool $resetCache = false])

Returns children depending on current switch



Tags:

access:  public


Parameters:

string   $currentSwitch  
bool   $resetCache   if true, children cache is ignored (default: false)

[ Top ]

method setChildren [line 226]

void setChildren( array $layerIds)

Sets children given an array of layerIds



Tags:

access:  public


Parameters:

array   $layerIds  

[ Top ]

method unserialize [line 237]

void unserialize( mixed $struct)



Tags:

access:  public
see:  CwSerializable::unserialize()


Overridden in child classes as:

LayerGroup::unserialize()
Layer::unserialize()

Overrides LayerBase::unserialize() (parent method not documented)

[ Top ]


Documentation generated on Wed, 30 Aug 2006 21:57:24 +0200 by phpDocumentor 1.3.0RC3