PHP Class Sitemap\Module

ファイルを表示 Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Property Type Description
$serviceManager Zend\ServiceManager\ServiceManager Service manager

Public Methods

Method Description
addElement ( Zend\EventManager\EventInterface $event ) : void Generate xml on save
getConfig ( ) : array Get module configuration
onBootstrap ( Zend\EventManager\EventInterface $e ) : void Boostrap
removeElement ( Zend\EventManager\EventInterface $event ) : void Remove element on delete
uninstall ( ) : boolean Uninstall module

Protected Methods

Method Description
getDoc ( SimpleXMLElemen\SimpleXMLElement $xml, string $basePath, string $url ) : false | array Get document
getXml ( Sitemap $sitemap ) : SimpleXMLElemen\SimpleXMLElement | null Get xml

Method Details

addElement() public method

Generate xml on save
public addElement ( Zend\EventManager\EventInterface $event ) : void
$event Zend\EventManager\EventInterface Event
return void

getConfig() public method

Get module configuration
public getConfig ( ) : array
return array

getDoc() protected method

Get document
protected getDoc ( SimpleXMLElemen\SimpleXMLElement $xml, string $basePath, string $url ) : false | array
$xml SimpleXMLElemen\SimpleXMLElement Xml class
$basePath string Base path
$url string Url
return false | array

getXml() protected method

Get xml
protected getXml ( Sitemap $sitemap ) : SimpleXMLElemen\SimpleXMLElement | null
$sitemap Sitemap\Model\Sitemap Sitemap model
return SimpleXMLElemen\SimpleXMLElement | null

onBootstrap() public method

Boostrap
public onBootstrap ( Zend\EventManager\EventInterface $e ) : void
$e Zend\EventManager\EventInterface Event
return void

removeElement() public method

Remove element on delete
public removeElement ( Zend\EventManager\EventInterface $event ) : void
$event Zend\EventManager\EventInterface Event
return void

uninstall() public method

Uninstall module
public uninstall ( ) : boolean
return boolean

Property Details

$serviceManager protected_oe property

Service manager
protected ServiceManager,Zend\ServiceManager $serviceManager
return Zend\ServiceManager\ServiceManager