Class FOFTable

Description

Implements interfaces:

FrameworkOnFramework Table class. The Table is one part controller, one part model and one part data adapter. It's supposed to handle operations for single records.

  • since: 1.0

Located in /libraries/fof/table/table.php (line 34)

JObject
   |
   --FOFTable
Variable Summary
Method Summary
 static array addIncludePath ([mixed $path = null])
 static bool forceInstance ([string|null $key = null], [FOFTable|null $instance = null])
 static FOFTable &getAnInstance ([string $type = null], [string $prefix = 'JTable'], [array $config = array()])
 static FOFTable getInstance (string $type, [string $prefix = 'JTable'], [array $config = array()])
 FOFTable __construct (string $table, string $key, JDatabaseDriver &$db, [array $config = array()])
 boolean addBehavior (string $name, [array $config = array()])
 void addKnownField (string $field, [boolean $initialise = false])
 boolean bind (mixed $src, [mixed $ignore = array()])
 boolean canDelete ([integer $oid = null], [array $joins = null])
 boolean check ()
 boolean checkin ([integer $oid = null])
 boolean checkout (integer $userId, [integer $oid = null])
 boolean copy ([integer|array $cid = null])
 boolean delete ([integer $oid = null])
 string getAssetKey ()
 string getAssetName ()
 integer getAssetParentId ([FOFTable $table = null], [integer $id = null])
 string getAssetTitle ()
 string getColumnAlias (string $column)
 string getContentType ()
 string getCSVHeader ([string $separator = ','])
 array getData ()
 mixed getFields ()
 string getKeyName ()
 array getKnownFields ()
 mixed getNextOrder ([string $where = ''])
 JDatabaseQuery getQueryJoin ([boolean $asReference = false])
 void getTableAlias ()
 mixed getTableFields ([string $tableName = null])
 string getTableName ()
 boolean getTriggerEvents ()
 bool hasTags ()
 boolean hit ([integer $oid = null], [boolean $log = false])
 boolean isAssetsTracked ()
 boolean isCheckedOut ([integer $with = 0], [integer $unused_against = null])
 bool isQuoted ( &$column, string $column)
 boolean load ([mixed $keys = null], [boolean $reset = true])
 mixed move (integer $delta, [string $where = ''])
 array normalizeSelectFields (array $fields)
 boolean onAfterBind (object|array &$src)
 boolean onAfterCopy (integer $oid)
 boolean onAfterDelete (integer $oid)
 boolean onAfterHit (integer $oid)
 void onAfterLoad (boolean &$result)
 boolean onAfterMove ()
 boolean onAfterReorder ()
 boolean onAfterReset ()
 boolean onAfterStore ()
 boolean onBeforeBind (object|array &$from)
 boolean onBeforeCopy (integer $oid)
 boolean onBeforeDelete (integer $oid)
 boolean onBeforeHit (integer $oid, boolean $log)
 boolean onBeforeMove (boolean $updateNulls)
 boolean onBeforePublish (integer|array &$cid, integer $publish)
 boolean onBeforeReorder ([string $where = ''])
 boolean onBeforeReset ()
 boolean onBeforeStore (boolean $updateNulls)
 boolean publish ([integer|array $cid = null], [integer $publish = 1], [integer $user_id = 0])
 void removeKnownField (string $field)
 boolean reorder ([string $where = ''])
 void reset ()
 boolean save (mixed $src, [string $orderingFilter = ''], [mixed $ignore = ''])
 void setAssetKey (string $assetKey)
 void setColumnAlias (string $column, string $columnAlias)
 void setConfig (array $config)
 boolean setDBO (JDatabaseDriver $db)
 void setHasTags ([bool $newState = false])
 void setInput (FOFInput $input)
 void setKnownFields (array $fields, [boolean $initialise = false])
 void setQueryJoin (JDatabaseQuery $query)
 void setRules (mixed $input)
 void setSkipChecks (array/string $skip)
 void setTableAlias ( $string)
 void setTablePrefix (string $prefix)
 void setTriggerEvents ([boolean $newState = false])
 boolean store ([boolean $updateNulls = false])
 string toCSV ([string $separator = ','])
 boolean _lock ()
 boolean _unlock ()
Variables
static array $tableCache = array() (line 199)

A list of tables in the database

  • access: protected
static array $tableFieldCache = array() (line 192)

A list of table fields, keyed per table

  • access: protected
array $config = array() (line 55)

The configuration parameters array

  • access: protected
FOFConfigProvider $configProvider = null (line 206)

An instance of FOFConfigProvider to provision configuration overrides

  • access: protected
array $default_behaviors = array('tags', 'assets') (line 220)

List of default behaviors to apply to the table

  • access: protected
FOFInput $input = null (line 164)

The input data

  • access: protected
array $knownFields = array() (line 185)

The known fields for this table

  • access: protected
FOFTableDispatcherBehavior $tableDispatcher = null (line 213)

FOFTableDispatcherBehavior for dealing with extra behaviors

  • access: protected
type $_assetKey = '' (line 157)

The asset key for items in this table. It's usually something in the com_example.viewname format. They asset name will be this key appended with the item's ID, e.g. com_example.viewname.123

  • access: protected
boolean $_autoChecks = false (line 133)

If set to true, it enabled automatic checks on fields based on columns properties

  • access: protected
array $_columnAlias = array() (line 126)

Array with alias for "special" columns such as ordering, hits etc etc

  • access: protected
JDatabaseDriver $_db (line 76)

JDatabaseDriver object.

  • access: protected
boolean $_has_tags = false (line 90)

Does the resource support joomla tags?

  • access: protected
boolean $_locked = false (line 104)

Indicator that the tables have been locked.

  • access: protected
JDatabaseQuery $_queryJoin = null (line 171)

Extended query including joins with other tables

  • access: protected
JAccessRules $_rules (line 97)

The rules associated with this record.

  • var: A JAccessRules object.
  • access: protected
array $_skipChecks = array() (line 140)

Array with fields that should be skipped by automatic checks

  • access: protected
string $_tableAlias = false (line 119)

Table alias used in queries

  • access: protected
boolean $_tableExists = true (line 148)

Does the table actually exist? We need that to avoid PHP notices on table-less views.

  • access: protected
string $_tablePrefix = '' (line 178)

The prefix for the table class

  • access: protected
string $_tbl = '' (line 62)

Name of the database table to model.

  • access: protected
string $_tbl_key = '' (line 69)

Name of the primary key field in the table.

  • access: protected
boolean $_trackAssets = false (line 83)

Should rows be tracked as ACL assets?

  • access: protected
boolean $_trigger_events = false (line 112)

If this is set to true, it triggers automatically plugin events for table actions

  • access: protected

Inherited Variables

Inherited from JObject

JObject::$_errors
Methods
static addIncludePath (line 3185)

Add a filesystem path where FOFTable should search for table class files.

You may either pass a string or an array of paths.

  • return: An array of filesystem paths to find FOFTable classes in.
  • access: public
static array addIncludePath ([mixed $path = null])
  • mixed $path: A filesystem path or array of filesystem paths to add.
static forceInstance (line 459)

Force an instance inside class cache. Setting arguments to null nukes all or part of the cache

  • return: Did I correctly switch the instance?
  • access: public
static bool forceInstance ([string|null $key = null], [FOFTable|null $instance = null])
  • string|null $key: TableClass to replace. Set it to null to nuke the entire cache
  • FOFTable|null $instance: Instance to replace. Set it to null to nuke $key instances
static getAnInstance (line 245)

Returns a static object instance of a particular table type

  • access: public
static FOFTable &getAnInstance ([string $type = null], [string $prefix = 'JTable'], [array $config = array()])
  • string $type: The table name
  • string $prefix: The prefix of the table class
  • array $config: Optional configuration variables
static getInstance (line 231)

Returns a static object instance of a particular table type

  • access: public
static FOFTable getInstance (string $type, [string $prefix = 'JTable'], [array $config = array()])
  • string $type: The table name
  • string $prefix: The prefix of the table class
  • array $config: Optional configuration variables
Constructor __construct (line 489)

Class Constructor.

  • access: public
FOFTable __construct (string $table, string $key, JDatabaseDriver &$db, [array $config = array()])
  • string $table: Name of the database table to model.
  • string $key: Name of the primary key field in the table.
  • JDatabaseDriver &$db: Database driver
  • array $config: The configuration parameters array

Redefinition of:
JObject::__construct()
Class constructor, overridden in descendant classes.
addBehavior (line 675)

Adds a behavior to the table

  • access: public
boolean addBehavior (string $name, [array $config = array()])
  • string $name: The name of the behavior
  • array $config: Optional Behavior configuration
addKnownField (line 638)

Add a field to the known fields array

  • access: public
void addKnownField (string $field, [boolean $initialise = false])
  • string $field: The name of the field to add
  • boolean $initialise: Should we initialise the variable to null?
bind (line 1107)

Method to bind an associative array or object to the FOFTable instance.This method only binds properties that are publicly accessible and optionally takes an array of properties to ignore when binding.

  • return: True on success.
  • throws: InvalidArgumentException
  • access: public
boolean bind (mixed $src, [mixed $ignore = array()])
  • mixed $src: An associative array or object to bind to the FOFTable instance.
  • mixed $ignore: An optional array or space separated list of properties to ignore while binding.
canDelete (line 1000)

Generic check for whether dependancies exist for this object in the db schema

  • return: True if the record can be deleted
  • access: public
boolean canDelete ([integer $oid = null], [array $joins = null])
  • integer $oid: The primary key of the record to delete
  • array $joins: Any joins to foreign table, used to determine if dependent records exist
check (line 902)

Based on fields properties (nullable column), checks if the field is required or not

  • access: public
boolean check ()
checkin (line 1471)

Check in (unlock) a record

  • return: True on success
  • access: public
boolean checkin ([integer $oid = null])
  • integer $oid: The primary key value of the record to unlock
checkout (line 1420)

Check out (lock) a record

  • return: True on success
  • access: public
boolean checkout (integer $userId, [integer $oid = null])
  • integer $userId: The locking user's ID
  • integer $oid: The primary key value of the record to lock
copy (line 1560)

Copy (duplicate) one or more records

  • return: True on success
  • access: public
boolean copy ([integer|array $cid = null])
  • integer|array $cid: The primary key value (or values) or the record(s) to copy
delete (line 1761)

Delete a record

  • return: True on success
  • throws: UnexpectedValueException
  • access: public
boolean delete ([integer $oid = null])
  • integer $oid: The primary key value of the item to delete
getAsset (line 3219)

Loads the asset table related to this table.

This will help tests, too, since we can mock this function.

  • return: False on failure, otherwise JTableAsset
  • access: protected
bool|JTableAsset getAsset ()
getAssetKey (line 3265)

Method to compute the default name of the asset.

The default name is in the form table_name.id where id is the value of the primary key of the table.

  • throws: UnexpectedValueException
  • access: public
string getAssetKey ()
getAssetName (line 3243)

Method to compute the default name of the asset.

The default name is in the form table_name.id where id is the value of the primary key of the table.

  • throws: UnexpectedValueException
  • access: public
string getAssetName ()
getAssetParentId (line 3296)

Method to get the parent asset under which to register this one.

By default, all assets are registered to the ROOT node with ID, which will default to 1 if none exists. The extended class can define a table and id to lookup. If the asset does not exist it will be created.

  • access: public
integer getAssetParentId ([FOFTable $table = null], [integer $id = null])
  • FOFTable $table: A FOFTable object for the asset parent.
  • integer $id: Id to look up
getAssetTitle (line 3279)

Method to return the title to use for the asset table. In

tracking the assets a title is kept for each asset so that there is some context available in a unified access manager. Usually this would just return $this->title or $this->name or whatever is being used for the primary name of the row. If this method is not overridden, the asset name is used.

  • return: The string to use as the title in the asset table.
  • access: public
string getAssetTitle ()
getColumnAlias (line 2135)

Method to return the real name of a "special" column such as ordering, hits, published etc etc. In this way you are free to follow your db naming convention and use the built in Joomla functions.

  • return: The string that identify the special
  • access: public
string getColumnAlias (string $column)
  • string $column: Name of the "special" column (ie ordering, hits etc etc)
getContentType (line 3532)

Get the content type for ucm

  • return: The content type alias
  • access: public
string getContentType ()
getCSVHeader (line 1922)

Get the header for exporting item list to CSV

  • return: The CSV file's header
  • access: public
string getCSVHeader ([string $separator = ','])
  • string $separator: CSV separator. Tip: use "\t" to get a TSV file instead.
getData (line 1891)

Exports the table in array format

  • access: public
array getData ()
getDbo (line 3348)

Method to get the JDatabaseDriver object.

  • return: The internal database driver object.
  • access: public
JDatabaseDriver getDbo ()
getFields (line 3172)

Get the columns from database table.

  • return: An array of the field names, or false if an error occurs.
  • deprecated: 2.1
  • access: public
mixed getFields ()
getKeyName (line 3338)

Method to get the primary key field name for the table.

  • return: The name of the primary key for the table.
  • access: public
string getKeyName ()
getKnownFields (line 625)

Get the known fields array

  • access: public
array getKnownFields ()
getNextOrder (line 3468)

Method to get the next ordering value for a group of rows defined by an SQL WHERE clause.

This is useful for placing a new item last in a group of items in the table.

  • return: Boolean false an failure or the next ordering value as an integer.
  • access: public
mixed getNextOrder ([string $where = ''])
  • string $where: WHERE clause to use for selecting the MAX(ordering) for the table.
getQueryJoin (line 2174)

Get a JOIN query, used to join other tables

  • return: Query used to join other tables
  • access: public
JDatabaseQuery getQueryJoin ([boolean $asReference = false])
  • boolean $asReference: Return an object reference instead of a copy
getQueryJoinFields (line 2210)

Extracts the fields from the join query

  • return: Fields contained in the join query
  • access: protected
array getQueryJoinFields ()
getRules (line 3391)

Method to get the rules for the record.

  • return: object
  • access: public
JAccessRules getRules ()
getTableAlias (line 2115)
  • access: public
void getTableAlias ()
getTableFields (line 1954)

Get the columns from a database table.

  • return: An array of the field names, or false if an error occurs.
  • access: public
mixed getTableFields ([string $tableName = null])
  • string $tableName: Table name. If null current table is used
getTableName (line 3328)

Method to get the database table name for the class.

  • return: The name of the database table being modeled.
  • access: public
string getTableName ()
getTriggerEvents (line 707)

Gets the events trigger switch state

  • access: public
boolean getTriggerEvents ()
hasTags (line 717)

Gets the has tags switch state

  • access: public
bool hasTags ()
hit (line 1806)

Register a hit on a record

  • return: True on success
  • access: public
boolean hit ([integer $oid = null], [boolean $log = false])
  • integer $oid: The primary key value of the record
  • boolean $log: Should I log the hit?
isAssetsTracked (line 3401)

Method to check if the record is treated as an ACL asset

  • return: [description]
  • access: public
boolean isAssetsTracked ()
isCheckedOut (line 1522)

Is a record locked?

  • return: True if the record is locked by another user
  • throws: UnexpectedValueException
  • access: public
boolean isCheckedOut ([integer $with = 0], [integer $unused_against = null])
  • integer $with: The userid to preform the match with. If an item is checked out by this user the function will return false.
  • integer $unused_against: Junk inherited from JTable; ignore
isQuoted (line 2368)

Is the field quoted?

  • return: Is the field quoted?
  • access: protected
bool isQuoted ( &$column, string $column)
  • string $column: Column, passed by reference, so in later version of Joomla I can always quote them
  • &$column
load (line 773)

Method to load a row from the database by primary key and bind the fields to the FOFTable instance properties.

  • return: True if successful. False if row not found.
  • throws: UnexpectedValueException
  • throws: RuntimeException
  • access: public
boolean load ([mixed $keys = null], [boolean $reset = true])
  • mixed $keys: An optional primary key value to load the row by, or an array of fields to match. If not set the instance property value is used.
  • boolean $reset: True to reset the default values before loading the new row.
move (line 1237)

Method to move a row in the ordering sequence of a group of rows defined by an SQL WHERE clause.

Negative numbers move the row up in the sequence and positive numbers move it down.

  • return: Boolean True on success.
  • throws: UnexpectedValueException
  • access: public
mixed move (integer $delta, [string $where = ''])
  • integer $delta: The direction and magnitude to move the row in the ordering sequence.
  • string $where: WHERE clause to use for limiting the selection of rows to compact the ordering values.
normalizeSelectFields (line 2306)

Normalizes the fields, returning an associative array with all the fields.

Ie array('foobar as foo, bar') becomes array('foobar' => 'foo', 'bar' => 'bar')

  • return: Normalized array
  • access: protected
array normalizeSelectFields (array $fields)
  • array $fields: Array with column fields
onAfterBind (line 2607)

The event which runs after binding data to the class

  • return: True to allow binding without an error
  • access: protected
boolean onAfterBind (object|array &$src)
  • object|array &$src: The data to bind
onAfterCopy (line 3015)

The even which runs after copying a record

  • return: True to allow the copy without errors
  • access: protected
boolean onAfterCopy (integer $oid)
  • integer $oid: The PK value of the record which was copied (not the new one)
onAfterDelete (line 2866)

The event which runs after deleting a record

  • return: True to allow the deletion without errors
  • access: protected
boolean onAfterDelete (integer $oid)
  • integer $oid: The PK value of the record which was deleted
onAfterHit (line 2941)

The event which runs after hitting a record

  • return: True to allow the hitting without errors
  • access: protected
boolean onAfterHit (integer $oid)
  • integer $oid: The PK value of the record which was hit
onAfterLoad (line 2449)

The event which runs after loading a record from the database

  • access: protected
void onAfterLoad (boolean &$result)
  • boolean &$result: Did the load succeeded?
onAfterMove (line 2720)

The event which runs after moving a record

  • return: True to allow moving without an error
  • access: protected
boolean onAfterMove ()
onAfterReorder (line 2792)

The event which runs after reordering a table

  • return: True to allow the reordering to complete without an error
  • access: protected
boolean onAfterReorder ()
onAfterReset (line 3088)

The event which runs after the object is reset to its default values.

  • return: True to allow the reset to complete without errors
  • access: protected
boolean onAfterReset ()
onAfterStore (line 2648)

The event which runs after storing (saving) data to the database

  • return: True to allow saving without an error
  • access: protected
boolean onAfterStore ()
onBeforeBind (line 2412)

The event which runs before binding data to the table

NOTE TO 3RD PARTY DEVELOPERS:

When you override the following methods in your child classes, be sure to call parent::method *AFTER* your code, otherwise the plugin events do NOT get triggered

Example: protected function onAfterStore(){ // Your code here return parent::onAfterStore() && $your_result; }

Do not do it the other way around, e.g. return $your_result && parent::onAfterStore() Due to PHP short-circuit boolean evaluation the parent::onAfterStore() will not be called if $your_result is false.

  • return: True on success
  • access: protected
boolean onBeforeBind (object|array &$from)
  • object|array &$from: The data to bind
onBeforeCopy (line 2978)

The even which runs before copying a record

  • return: True to allow the copy to take place
  • access: protected
boolean onBeforeCopy (integer $oid)
  • integer $oid: The PK value of the record being copied
onBeforeDelete (line 2829)

The event which runs before deleting a record

  • return: True to allow the deletion
  • access: protected
boolean onBeforeDelete (integer $oid)
  • integer $oid: The PK value of the record to delete
onBeforeHit (line 2904)

The event which runs before hitting a record

  • return: True to allow the hit
  • access: protected
boolean onBeforeHit (integer $oid, boolean $log)
  • integer $oid: The PK value of the record to hit
  • boolean $log: Should we log the hit?
onBeforeMove (line 2685)

The event which runs before moving a record

  • return: True to allow moving
  • access: protected
boolean onBeforeMove (boolean $updateNulls)
  • boolean $updateNulls: Should nulls be saved as nulls (true) or just skipped over (false)?
onBeforePublish (line 3053)

The event which runs before a record is (un)published

  • return: True to allow the (un)publish to proceed
  • access: protected
boolean onBeforePublish (integer|array &$cid, integer $publish)
  • integer|array &$cid: The PK IDs of the records being (un)published
  • integer $publish:
    1. to publish, 0 to unpublish
onBeforeReorder (line 2757)

The event which runs before reordering a table

  • return: True to allow reordering
  • access: protected
boolean onBeforeReorder ([string $where = ''])
  • string $where: The WHERE clause of the SQL query to run on reordering (record filter)
onBeforeReset (line 3123)

The even which runs before the object is reset to its default values.

  • return: True to allow the reset to complete
  • access: protected
boolean onBeforeReset ()
onBeforeStore (line 2476)

The event which runs before storing (saving) data to the database

  • return: True to allow saving
  • access: protected
boolean onBeforeStore (boolean $updateNulls)
  • boolean $updateNulls: Should nulls be saved as nulls (true) or just skipped over (false)?
publish (line 1649)

Publish or unpublish records

  • return: True on success, false on failure (e.g. record is locked)
  • access: public
boolean publish ([integer|array $cid = null], [integer $publish = 1], [integer $user_id = 0])
  • integer|array $cid: The primary key value(s) of the item(s) to publish/unpublish
  • integer $publish:
    1. to publish an item, 0 to unpublish
  • integer $user_id: The user ID of the user (un)publishing the item.
removeKnownField (line 658)

Remove a field from the known fields array

  • access: public
void removeKnownField (string $field)
  • string $field: The name of the field to remove
reorder (line 1349)

Change the ordering of the records of the table

  • return: True is successful
  • throws: UnexpectedValueException
  • access: public
boolean reorder ([string $where = ''])
  • string $where: The WHERE clause of the SQL used to fetch the order
reset (line 960)

Method to reset class properties to the defaults set in the class definition. It will ignore the primary key as well as any private class properties.

  • access: public
void reset ()
save (line 3421)

Method to provide a shortcut to binding, checking and storing a FOFTable

instance to the database table. The method will check a row in once the data has been stored and if an ordering filter is present will attempt to reorder the table rows based on the filter. The ordering filter is an instance property name. The rows that will be reordered are those whose value matches the FOFTable instance for the property specified.

  • return: True on success.
  • access: public
boolean save (mixed $src, [string $orderingFilter = ''], [mixed $ignore = ''])
  • mixed $src: An associative array or object to bind to the FOFTable instance.
  • string $orderingFilter: Filter for the order updating
  • mixed $ignore: An optional array or space separated list of properties to ignore while binding.
setAssetKey (line 3318)

This method sets the asset key for the items of this table. Obviously, it is only meant to be used when you have a table with an asset field.

  • access: public
void setAssetKey (string $assetKey)
  • string $assetKey: The name of the asset key to use
setColumnAlias (line 2159)

Method to register a column alias for a "special" column.

  • access: public
void setColumnAlias (string $column, string $columnAlias)
  • string $column: The "special" column (ie ordering)
  • string $columnAlias: The real column name (ie foo_ordering)
setConfig (line 3522)
  • access: public
void setConfig (array $config)
  • array $config
setDBO (line 3360)

Method to set the JDatabaseDriver object.

  • return: True on success.
  • access: public
boolean setDBO (JDatabaseDriver $db)
  • JDatabaseDriver $db: A JDatabaseDriver object to be used by the table object.
setHasTags (line 727)

Sets the has tags switch state

  • access: public
void setHasTags ([bool $newState = false])
  • bool $newState
setInput (line 3160)

Replace the input object of this table with the provided FOFInput object

  • access: public
void setInput (FOFInput $input)
setKnownFields (line 607)

Replace the entire known fields array

  • access: public
void setKnownFields (array $fields, [boolean $initialise = false])
  • array $fields: A simple array of known field names
  • boolean $initialise: Should we initialise variables to null?
setQueryJoin (line 2200)

Sets the query with joins to other tables

  • access: public
void setQueryJoin (JDatabaseQuery $query)
setRules (line 3374)

Method to set rules for the record.

  • access: public
void setRules (mixed $input)
  • mixed $input: A JAccessRules object, JSON string, or array.
setSkipChecks (line 755)

Sets fields to be skipped from automatic checks.

  • access: public
void setSkipChecks (array/string $skip)
  • array/string $skip: Fields to be skipped by automatic checks
setTableAlias (line 2120)
  • access: public
void setTableAlias ( $string)
  • $string
setTablePrefix (line 743)

Set the class prefix

  • access: public
void setTablePrefix (string $prefix)
  • string $prefix: The prefix
setTriggerEvents (line 697)

Sets the events trigger switch state

  • access: public
void setTriggerEvents ([boolean $newState = false])
  • boolean $newState: The new state of the switch (what else could it be?)
store (line 1161)

Method to store a row in the database from the FOFTable instance properties.

If a primary key value is set the row with that primary key value will be updated with the instance property values. If no primary key value is set a new row will be inserted into the database with the properties from the FOFTable instance.

  • return: True on success.
  • access: public
boolean store ([boolean $updateNulls = false])
  • boolean $updateNulls: True to update fields even if they are null.
toCSV (line 1861)

Export the item as a CSV line

  • return: The CSV line
  • access: public
string toCSV ([string $separator = ','])
  • string $separator: CSV separator. Tip: use "\t" to get a TSV file instead.
_lock (line 3501)

Method to lock the database table for writing.

  • return: True on success.
  • throws: RuntimeException
  • access: protected
boolean _lock ()
_unlock (line 3514)

Method to unlock the database table for writing.

  • return: True on success.
  • access: protected
boolean _unlock ()

Inherited Methods

Inherited From JObject

 JObject::__construct()
 JObject::def()
 JObject::get()
 JObject::getError()
 JObject::getErrors()
 JObject::getProperties()
 JObject::set()
 JObject::setError()
 JObject::setProperties()
 JObject::__toString()

Documentation generated on Tue, 19 Nov 2013 15:15:02 +0100 by phpDocumentor 1.4.3