/** * Returns string representation of object. * * <p> * If any display driver is currently loaded then it uses it's method. * </p> * * @version 0.2.0+SVN * @since 0.1.3 * @return string String representation of object. */ public function __toString() { // checks if display driver is loaded if (POT::isDataDisplayDriverLoaded()) { return POT::getDataDisplayDriver()->displaySpellsList($this); } return (string) $this->count(); }
/** * Returns string representation of object. * * <p> * If any display driver is currently loaded then it uses it's method. Otherwise just returns item ID. * </p> * * @version 0.2.0+SVN * @since 0.1.3 * @return string String representation of object. */ public function __toString() { // checks if display driver is loaded if (POT::isDataDisplayDriverLoaded()) { return POT::getDataDisplayDriver()->displayItemType($this); } return $this->getId(); }
/** * Returns string representation of XML. * * <p> * If any display driver is currently loaded then it uses it's method. Otherwise just returns monster XML content. * </p> * * @version 0.2.0+SVN * @since 0.1.0 * @return string String representation of object. */ public function __toString() { // checks if display driver is loaded if (POT::isDataDisplayDriverLoaded()) { return POT::getDataDisplayDriver()->displayMonster($this); } return $this->saveXML(); }
/** * Returns string representation of XML. * * <p> * If any display driver is currently loaded then it uses it's method. Otherwise just returns spell XML format. * </p> * * @version 0.2.0+SVN * @since 0.1.0 * @return string String representation of object. */ public function __toString() { // checks if display driver is loaded if (POT::isDataDisplayDriverLoaded()) { return POT::getDataDisplayDriver()->displaySpell($this); } return $this->element->ownerDocument->saveXML($this->element); }