/** * 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.2.0b+SVN * @return string String representation of object. */ public function __toString() { // checks if display driver is loaded if (POT::isDisplayDriverLoaded()) { return POT::getDisplayDriver()->displayAuctionsList($this); } return (string) $this->count(); }
/** * Returns string representation of object. * * <p> * If any display driver is currently loaded then it uses it's method. Else it returns group name. * </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::isDisplayDriverLoaded()) { return POT::getDisplayDriver()->displayGroup($this); } return $this->getName(); }