Class NewsfeedsModelNewsfeed

Description

Newsfeed model.

  • since: 1.6

Located in /administrator/components/com_newsfeeds/models/newsfeed.php (line 19)

JObject
   |
   --JModel
      |
      --JModelForm
         |
         --JModelAdmin
            |
            --NewsfeedsModelNewsfeed
Variable Summary
string $text_prefix
Method Summary
mixed batchCopy (integer $value, array $pks, array $contexts)
boolean canDelete (object A $record)
boolean canEditState (object A $record)
JForm getForm ([array $data = array()], [boolean $loadData = true])
mixed getItem ([integer $pk = null])
array getReorderConditions (object A $table)
JTable getTable ([type $type = 'Newsfeed'], [string $prefix = 'NewsfeedsTable'], [array $config = array()])
mixed loadFormData ()
void prepareTable ( &$table)
boolean publish ( &$pks, [int $value = 1], array $pks)
Variables
string $text_prefix = 'COM_NEWSFEEDS' (line 25)
  • var: The prefix to use with controller messages.
  • since: 1.6
  • access: protected

Redefinition of:
JModelAdmin::$text_prefix
The prefix to use with controller messages.

Inherited Variables

Inherited from JModelAdmin

JModelAdmin::$event_after_delete
JModelAdmin::$event_after_save
JModelAdmin::$event_before_delete
JModelAdmin::$event_before_save
JModelAdmin::$event_change_state

Inherited from JModelForm

JModelForm::$_forms

Inherited from JModel

JModel::$event_clean_cache
JModel::$name
JModel::$option
JModel::$state
JModel::$_db
JModel::$__state_set

Inherited from JObject

JObject::$_errors
Methods
batchCopy (line 38)

Batch copy items to a new category or current.

  • return: An array of new IDs on success, boolean false on failure.
  • since: 11.1
  • access: protected
mixed batchCopy (integer $value, array $pks, array $contexts)
  • integer $value: The new category.
  • array $pks: An array of row IDs.
  • array $contexts: An array of item contexts.

Redefinition of:
JModelAdmin::batchCopy()
Batch copy items to a new category or current.
canDelete (line 153)

Method to test whether a record can be deleted.

  • return: True if allowed to delete the record. Defaults to the permission set in the component.
  • since: 1.6
  • access: protected
boolean canDelete (object A $record)
  • object A $record: record object.

Redefinition of:
JModelAdmin::canDelete()
Method to test whether a record can be deleted.
canEditState (line 177)

Method to test whether a record can have its state changed.

  • return: True if allowed to change the state of the record. Defaults to the permission set in the component.
  • since: 1.6
  • access: protected
boolean canEditState (object A $record)
  • object A $record: record object.

Redefinition of:
JModelAdmin::canEditState()
Method to test whether a record can be deleted.
getForm (line 210)

Method to get the record form.

  • return: A JForm object on success, false on failure
  • since: 1.6
  • access: public
JForm getForm ([array $data = array()], [boolean $loadData = true])
  • array $data: Data for the form.
  • boolean $loadData: True if the form is to load its own data (default case), false if not.

Redefinition of:
JModelForm::getForm()
Abstract method for getting the form from the model.
getItem (line 278)

Method to get a single record.

  • return: Object on success, false on failure.
  • since: 1.6
  • access: public
mixed getItem ([integer $pk = null])
  • integer $pk: The id of the primary key.

Redefinition of:
JModelAdmin::getItem()
Method to get a single record.
getReorderConditions (line 351)

A protected method to get a set of ordering conditions.

  • return: An array of conditions to add to add to ordering queries.
  • since: 1.6
  • access: protected
array getReorderConditions (object A $table)
  • object A $table: record object.

Redefinition of:
JModelAdmin::getReorderConditions()
A protected method to get a set of ordering conditions.
getTable (line 197)

Returns a Table object, always creating it.

  • return: A database object
  • access: public
JTable getTable ([type $type = 'Newsfeed'], [string $prefix = 'NewsfeedsTable'], [array $config = array()])
  • type $type: The table type to instantiate
  • string $prefix: A prefix for the table class name. Optional.
  • array $config: Configuration array for model. Optional.

Redefinition of:
JModel::getTable()
Method to get a table object, load it if necessary.
loadFormData (line 252)

Method to get the data that should be injected in the form.

  • return: The data for the form.
  • since: 1.6
  • access: protected
mixed loadFormData ()

Redefinition of:
JModelForm::loadFormData()
Method to get the data that should be injected in the form.
prepareTable (line 293)

Prepare and sanitise the table prior to saving.

  • access: protected
void prepareTable ( &$table)
  • &$table

Redefinition of:
JModelAdmin::prepareTable()
Prepare and sanitise the table data prior to saving.
publish (line 334)

Method to change the published state of one or more records.

  • return: True on success.
  • since: 1.6
boolean publish ( &$pks, [int $value = 1], array $pks)
  • array $pks: A list of the primary keys to change.
  • int $value: The value of the published state.
  • &$pks

Redefinition of:
JModelAdmin::publish()
Method to change the published state of one or more records.

Inherited Methods

Inherited From JModelAdmin

JModelAdmin::__construct()
JModelAdmin::batch()
JModelAdmin::batchAccess()
JModelAdmin::batchCopy()
JModelAdmin::batchLanguage()
JModelAdmin::batchMove()
JModelAdmin::canDelete()
JModelAdmin::canEditState()
JModelAdmin::checkin()
JModelAdmin::checkout()
JModelAdmin::delete()
JModelAdmin::generateNewTitle()
JModelAdmin::getItem()
JModelAdmin::getReorderConditions()
JModelAdmin::populateState()
JModelAdmin::prepareTable()
JModelAdmin::publish()
JModelAdmin::reorder()
JModelAdmin::save()
JModelAdmin::saveorder()

Inherited From JModelForm

JModelForm::checkin()
JModelForm::checkout()
JModelForm::getForm()
JModelForm::loadForm()
JModelForm::loadFormData()
JModelForm::preprocessForm()
JModelForm::validate()

Inherited From JModel

JModel::__construct()
JModel::addIncludePath()
JModel::addTablePath()
JModel::cleanCache()
JModel::getDbo()
JModel::getInstance()
JModel::getName()
JModel::getState()
JModel::getTable()
JModel::populateState()
JModel::setDbo()
JModel::setState()
JModel::_createFileName()
JModel::_createTable()
JModel::_getList()
JModel::_getListCount()

Inherited From JObject

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

Documentation generated on Mon, 25 Jun 2012 13:58:03 -0500 by phpDocumentor 1.4.4