|
| __construct ($db) |
|
| bind ($array, $ignore='') |
|
| check () |
|
| delete ($pk=null) |
|
| deleteByContentId ($contentItemId=null, $typeAlias=null) |
|
| store ($updateNulls=false) |
|
| publish ($pks=null, $state=1, $userId=0) |
|
| __construct ($table, $key, $db) |
|
| attachObserver (\JObserverInterface $observer) |
|
| getObserverOfClass ($observerClass) |
|
| getFields ($reload=false) |
|
| appendPrimaryKeys ($query, $pk=null) |
|
| getTableName () |
|
| getKeyName ($multiple=false) |
|
| getDbo () |
|
| setDbo ($db) |
|
| setRules ($input) |
|
| getRules () |
|
| reset () |
|
| bind ($src, $ignore=array()) |
|
| load ($keys=null, $reset=true) |
|
| check () |
|
| save ($src, $orderingFilter='', $ignore='') |
|
| checkOut ($userId, $pk=null) |
|
| checkIn ($pk=null) |
|
| hasPrimaryKey () |
|
| hit ($pk=null) |
|
| isCheckedOut ($with=0, $against=null) |
|
| getNextOrder ($where='') |
|
| getPrimaryKey (array $keys=array()) |
|
| reorder ($where='') |
|
| move ($delta, $where='') |
|
| publish ($pks=null, $state=1, $userId=0) |
|
| getColumnAlias ($column) |
|
| setColumnAlias ($column, $columnAlias) |
|
| hasField ($key) |
|
| attachObserver (JObserverInterface $observer) |
|
Core content table
- Depuis
- 3.1
◆ __construct()
Constructor
- Paramètres
-
\JDatabaseDriver | $db | A database connector object |
- Depuis
- 3.1
Références $db.
◆ bind()
bind |
( |
|
$array, |
|
|
|
$ignore = '' |
|
) |
| |
Overloaded bind function
- Paramètres
-
array | $array | Named array |
mixed | $ignore | An optional array or space separated list of properties to ignore while binding. |
- Renvoie
- mixed Null if operation was satisfactory, otherwise returns an error string
- Voir également
- Table::bind()
- Depuis
- 3.1
◆ check()
Overloaded check function
- Renvoie
- boolean True on success, false on failure
- Voir également
- Table::check()
- Depuis
- 3.1
Références $key.
◆ delete()
Override JTable delete method to include deleting corresponding row from #__ucm_base.
- Paramètres
-
integer | $pk | primary key value to delete. Must be set or throws an exception. |
- Renvoie
- boolean True on success.
- Depuis
- 3.1
- Exceptions
-
Références Table\getInstance().
◆ deleteByContentId()
deleteByContentId |
( |
|
$contentItemId = null , |
|
|
|
$typeAlias = null |
|
) |
| |
Method to delete a row from the #__ucm_content table by content_item_id.
- Paramètres
-
integer | $contentItemId | value of the core_content_item_id to delete. Corresponds to the primary key of the content table. |
string | $typeAlias | Alias for the content type |
- Renvoie
- boolean True on success.
- Depuis
- 3.1
- Exceptions
-
Références $db, $query, et null.
◆ publish()
publish |
( |
|
$pks = null , |
|
|
|
$state = 1 , |
|
|
|
$userId = 0 |
|
) |
| |
Method to set the publishing state for a row or list of rows in the database table. The method respects checked out rows by other users and will attempt to checkin rows that it can after adjustments are made.
- Paramètres
-
mixed | $pks | An optional array of primary key values to update. If not set the instance property value is used. |
integer | $state | The publishing state. eg. [0 = unpublished, 1 = published] |
integer | $userId | The user id of the user performing the operation. |
- Renvoie
- boolean True on success.
- Depuis
- 3.1
Références $query, $state, $userId, et ArrayHelper\toInteger().
◆ store()
store |
( |
|
$updateNulls = false | ) |
|
Overrides Table::store to set modified data and user id.
- Paramètres
-
boolean | $updateNulls | True to update fields even if they are null. |
- Renvoie
- boolean True on success.
- Depuis
- 3.1
Références $date, et $user.
◆ storeUcmBase()
storeUcmBase |
( |
|
$updateNulls = false , |
|
|
|
$isNew = false |
|
) |
| |
|
protected |
Insert or update row in ucm_base table
- Paramètres
-
boolean | $updateNulls | True to update fields even if they are null. |
boolean | $isNew | if true, need to insert. Otherwise update. |
- Renvoie
- boolean True on success.
- Depuis
- 3.1
Références $db, et $query.
La documentation de cette classe a été générée à partir du fichier suivant :