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

Class: LayerBase

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

Class Overview

Serializable
   |
   --LayerBase

Base class for layers


Variables

Methods


Child classes:

LayerContainer
Layer with children
LayerClass
Layer class

Inherited Variables

Inherited Methods

Class: Serializable

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

Class Details

[line 33]
Base class for layers



[ Top ]


Class Variables

$icon =  'none'

[line 61]

Icon to display for layer



Tags:

access:  public

Type:   string


[ Top ]

$id =

[line 38]



Tags:

access:  public

Type:   string


[ Top ]

$label =

[line 43]



Tags:

access:  public

Type:   string


[ Top ]

$link =

[line 67]

External link to be added to label



Tags:

access:  public

Type:   string


[ Top ]

$maxScale =  0

[line 55]

Maximum scale where layer is visible



Tags:

access:  public

Type:   int


[ Top ]

$metadata = array()

[line 73]

A map of metadata values, in the form "key=value"



Tags:

access:  public

Type:   array


[ Top ]

$metaHash =

[line 80]

A map for metadata, it is lazyly constructed from $metadata when requested.



Tags:

access:  private

Type:   array


[ Top ]

$minScale =  0

[line 49]

Minimum scale where layer is visible



Tags:

access:  public

Type:   int


[ Top ]



Class Methods


method getMetadata [line 87]

string getMetadata( string $key)

Returns a metadata valued from its key, or null if it does not exists.



Tags:

return:  the value, or null if not there.
access:  public


Parameters:

string   $key   metadata key

[ Top ]

method unserialize [line 103]

void unserialize( mixed $struct)



Tags:

access:  public
see:  Serializable::unserialize()


Overridden in child classes as:

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

Overrides Serializable::unserialize() (Unserializes from a stdClass structure)

[ Top ]


Documentation generated on Wed, 6 Apr 2005 12:06:42 +0200 by phpDocumentor 1.3.0RC3