__construct Function

Creates a new service object.

Summary

ElementFunction
ReturnsObject

Arguments

nameStringThe name of the service.
cmsObjectReference to the main CMS object.
serviceObjectReference to the service XML object.
moduleObjectReference to the module XML object.

Example

$this->service = new PageTypeService('example',$this,$service,$module);
CodeMessageLineFile
2count(): Parameter must be an array or an object that implements Countable224/home2/ptorg/public_html/pagetype/content/pages/en/docml.viewer.php