manifestObject = $xml; $this->caller = $caller; } /** * Returns the manifest XML object * * @return \ElggXmlElement */ public function getManifestObject() { return $this->manifestObject; } /** * Return the parsed manifest array * * @return array */ public function getManifest() { return $this->manifest; } /** * Return an attribute in the manifest. * * @param string $name Attribute name * @return mixed */ public function getAttribute($name) { if (in_array($name, $this->validAttributes) && isset($this->manifest[$name])) { return $this->manifest[$name]; } return false; } /** * Parse the XML object into an array * * @return bool */ abstract public function parse(); }