Actions

API16

JObject/ toString

< API16:JObject

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description

Magic method to convert the object to a string gracefully.



Syntax

__toString()


Returns

string The classname.

Defined in

libraries/joomla/base/object.php

Importing

jimport( 'joomla.base.object' );

Source Body

public function __toString()
{
        return get_class($this);
}



Examples

Code Examples


Advertisement