Class JObject

Description

Object class, allowing __construct in PHP4.

Located in /Servers/Apache_2_2/htdocs/Joomla15/libraries/joomla/base/object.php (line 23)


	
			
Direct descendents
Class Description
JApplication Base class for a Joomla! application.
JController Base class for a Joomla Controller
JModel Base class for a Joomla Model
JView Base class for a Joomla View
JMenu JMenu class
JPathway Class to maintain a pathway.
JRouter Class to create and parse routes
JObservable Abstract observable class to implement the observer design pattern
JObserver Abstract observer class to implement the observer design pattern
JTree Tree Class.
JNode Tree Node Class.
JCache Joomla! Cache base object
JCacheStorage Abstract cache storage handler
JFTP FTP client class
JLDAP LDAP client class
JDatabase Database connector class
JTable Abstract Table class
JDocument Document class, provides an easy interface to parse and display a document
JFeedItem JFeedItem is an internal class that stores feed item information
JFeedEnclosure JFeedEnclosure is an internal class that stores feed enclosure information
JFeedImage JFeedImage is an internal class that stores feed image information
JDocumentRenderer Abstract class for a renderer
JBrowser Browser class, provides capability information about the current web client.
JURI JURI Class
JException Joomla! Exception object.
JLog Joomla! Logging class
JProfiler Utility class to assist in the process of benchmarking the execution of sections of code to understand where time is being spent.
JArchiveBzip2 Bzip2 format adapter for the JArchive class
JArchiveGzip Gzip format adapter for the JArchive class
JArchiveTar Tar format adapter for the JArchive class
JArchiveZip ZIP format adapter for the JArchive class
JFilterInput JFilterInput is a class for filtering input from any data source
JPagination Pagination Class. Provides a common interface for content pagination for the Joomla! Framework
JPaginationObject Pagination object representing a particular item in the pagination lists
JPane JPane abstract class
JElement Parameter base class
JToolBar ToolBar handler
JButton Button base class
JInstallerComponent Component installer
JInstallerLanguage Language installer
JInstallerModule Module installer
JInstallerPlugin Plugin installer
JInstallerTemplate Template installer
JInstaller Joomla base installer class
JLanguage Languages/translation handler class
JRegistryFormat Abstract Format for JRegistry
JRegistry JRegistry class
JSession Class for managing HTTP sessions
JSessionStorage Custom session storage handler for PHP
JAuthenticationResponse Authorization response class, provides an object for storing user and error details
JUser User class. Handles all application interaction with a user
JDate JDate is a class that stores a date
JSimpleCrypt JSimpleCrypt is a very simple encryption algorithm for encyrpting/decrypting strings
JSimpleXML SimpleXML implementation.
JSimpleXMLElement SimpleXML Element
Variable Summary
array $_errors
Method Summary
JObject __construct ()
Object JObject ()
mixed get (string $property, [mixed $default = null])
string getError ([integer $i = null], [boolean $toString = true])
array getErrors ()
array getProperties ([boolean $public = true])
mixed set (string $property, [mixed $value = null])
void setError (string $error)
boolean setProperties ($array $properties)
string toString ()
Variables
array $_errors = array() (line 33)

An array of errors

  • var: of error messages or JExceptions objects
  • since: 1.0
  • access: protected
Methods
Constructor __construct (line 58)

Class constructor, overridden in descendant classes.

  • since: 1.5
  • access: protected
JObject __construct ()

Redefined in descendants as:
Constructor JObject (line 46)

A hack to support __construct() on PHP 4

Hint: descendant classes have no PHP4 class_name() constructors, so this constructor gets called first and calls the top-layer __construct() which (if present) should call parent::__construct()

  • since: 1.5
  • access: public
Object JObject ()
get (line 71)

Returns a property of the object or the default value if the property is not set.

mixed get (string $property, [mixed $default = null])
  • string $property: The name of the property
  • mixed $default: The default value

Redefined in descendants as:
getError (line 114)

Get the most recent error message

  • return: Error message
  • since: 1.5
  • access: public
string getError ([integer $i = null], [boolean $toString = true])
  • integer $i: Option error index
  • boolean $toString: Indicates if JError objects should return their error message

Redefined in descendants as:
getErrors (line 145)

Return all errors, if any

  • return: Array of error messages or JErrors
  • since: 1.5
  • access: public
array getErrors ()
getProperties (line 88)

Returns an associative array of object properties

array getProperties ([boolean $public = true])
  • boolean $public: If true, returns only the public properties
getPublicProperties (line 224)

Legacy Method, use JObject::getProperties() instead

  • deprecated: as of 1.5
  • since: 1.0
void getPublicProperties ()

Redefined in descendants as:
set (line 161)

Modifies a property of the object, creating it if it does not already exist.

mixed set (string $property, [mixed $value = null])
  • string $property: The name of the property
  • mixed $value: The value of the property to set

Redefined in descendants as:
setError (line 200)

Add an error message

  • since: 1.0
  • access: public
void setError (string $error)
  • string $error: Error message

Redefined in descendants as:
setProperties (line 177)

Set the object properties based on a named array/hash

boolean setProperties ($array $properties)
  • $array $properties: mixed Either and associative array or another object
toString (line 213)

Object-to-string conversion.

Each class can override it as necessary.

  • return: This name of this class
  • since: 1.5
  • access: public
string toString ()

Redefined in descendants as:

Documentation generated on Sun, 06 Apr 2008 07:14:43 +0200 by phpDocumentor 1.4.0a2