1.5 Template Project

The Joomla! Documentation Working Group is running a project to develop detailed reference and tutorial material on Joomla! 1.5 templates.  There is a project page on the documentation wiki where you can see the work in progress and help us by contributing your knowledge.

Who's Online

We have 2 guests online

Help Site License

The Joomla! Help Site content 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.
Home arrow Developer Manual arrow 11. API Reference arrow [WORKING] mosDBTable->getPublicProperties

[WORKING] mosDBTable->getPublicProperties PDF Print E-mail

Last reviewed: Not reviewed


Returns an array of public properties in the class. A public property is defined as one with a name that does not begin with an underscore.


array getPublicProperties ( )


Example: In this example notice that the $_private property is not included in the array.

* myTable database table class
* @package MyComponent
class myTable extends mosDBTable {
  /** @var int Primary key */
  var $id = null;
  /** @var string A title */
  var $title = null;
  /** @var string A description */
  var $description = null;
  /** @var string Private property */
  var $_private = null;
  /** @var boolean Published flag */
  var $published = null;
  * @param database A database connector object.
  function myTable( &$db ) {
    $this->mosDBTable( '#__myTable', 'id', $db );
global $database;
$table = new myTable( $database );
print_r( $table->getPublicProperties() );

which will output:

    [0] => id
    [1] => title
    [2] => description
    [3] => published

Please report any errors on this page to the Developer Documentation Forum.

Last Updated ( Monday, 25 December 2006 )
< Prev   Next >