Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

License

Content on this site is copyright © 2005 - 2008 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5. Some parts of this website may be subject to other licenses.

 Class JObject

Description

Object class, allowing __construct in PHP4.

Located in /joomla/base/object.php (line 23)

Class JObject   (Subpackage Base)
Direct descendents
Class Description
Abstract classJApplication Base class for a Joomla! application.
Abstract classJController Base class for a Joomla Controller
Abstract classJModel Base class for a Joomla Model
Abstract classJView Base class for a Joomla View
ClassJMenu JMenu class
Abstract classJPathway Class to maintain a pathway.
Abstract classJRouter Class to create and parse routes
Abstract classJObservable Abstract observable class to implement the observer design pattern
Abstract classJObserver Abstract observer class to implement the observer design pattern
ClassJTree Tree Class.
ClassJNode Tree Node Class.
Abstract classJCache Joomla! Cache base object
Abstract classJCacheStorage Abstract cache storage handler
ClassJFTP FTP client class
ClassJLDAP LDAP client class
Abstract classJDatabase Database connector class
Abstract classJTable Abstract Table class
Abstract classJDocument Document class, provides an easy interface to parse and display a document
ClassJFeedItem JFeedItem is an internal class that stores feed item information
ClassJFeedEnclosure JFeedEnclosure is an internal class that stores feed enclosure information
ClassJFeedImage JFeedImage is an internal class that stores feed image information
Abstract classJDocumentRenderer Abstract class for a renderer
ClassJBrowser Browser class, provides capability information about the current web client.
ClassJURI JURI Class
ClassJException Joomla! Exception object.
ClassJLog Joomla! Logging class
ClassJProfiler Utility class to assist in the process of benchmarking the execution of sections of code to understand where time is being spent.
ClassJArchiveBzip2 Bzip2 format adapter for the JArchive class
ClassJArchiveGzip Gzip format adapter for the JArchive class
ClassJArchiveTar Tar format adapter for the JArchive class
ClassJArchiveZip ZIP format adapter for the JArchive class
ClassJFilterInput JFilterInput is a class for filtering input from any data source
ClassJPagination Pagination Class. Provides a common interface for content pagination for the Joomla! Framework
ClassJPaginationObject Pagination object representing a particular item in the pagination lists
Abstract classJPane JPane abstract class
Abstract classJElement Parameter base class
Abstract classJButton Button base class
ClassJToolBar ToolBar handler
ClassJInstallerComponent Component installer
ClassJInstallerLanguage Language installer
ClassJInstallerModule Module installer
ClassJInstallerPlugin Plugin installer
ClassJInstallerTemplate Template installer
ClassJInstaller Joomla base installer class
ClassJLanguage Languages/translation handler class
Abstract classJRegistryFormat Abstract Format for JRegistry
ClassJRegistry JRegistry class
ClassJSession Class for managing HTTP sessions
Abstract classJSessionStorage Custom session storage handler for PHP
ClassJAuthenticationResponse Authorization response class, provides an object for storing user and error details
ClassJUser User class. Handles all application interaction with a user
ClassJDate JDate is a class that stores a date
ClassJSimpleCrypt JSimpleCrypt is a very simple encryption algorithm for encyrpting/decrypting strings
ClassJSimpleXML SimpleXML implementation.
ClassJSimpleXMLElement SimpleXML Element
Variable Summary
Variable array $_errors
Method Summary
Constructor JObject __construct ()
Constructor Object JObject ()
Method mixed get (string $property, [mixed $default = null])
Method string getError ([integer $i = null], [boolean $toString = true])
Method array getErrors ()
Method array getProperties ([boolean $public = true])
Method mixed set (string $property, [mixed $value = null])
Method void setError (string $error)
Method boolean setProperties ($array $properties)
Method 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
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

  • since: 1.0
  • deprecated: as of 1.5
void getPublicProperties ()
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 Tue, 29 Jan 2008 18:48:42 +0000 by phpDocumentor 1.3.1