API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
ContentModelArticle::__construct | ( | ) |
Constructor
Réimplémentée à partir de JObject.
Références $id, et JRequest::getVar().
ContentModelArticle::_buildContentWhere | ( | ) |
Method to build the WHERE clause of the query to select a content article
private
Références $mainframe, $now, $nullDate, $user, $where, JFactory::getDate(), et JFactory::getUser().
ContentModelArticle::_loadArticle | ( | ) |
Method to load content article data
private
Références $mainframe, $params, $query, $where, JText::_(), et ContentHelperQuery::buildVotingQuery().
ContentModelArticle::_loadArticleParams | ( | ) |
Method to load content article parameters
private
Références $mainframe, $params, et JRequest::getVar().
ContentModelArticle::checkin | ( | ) |
Method to checkin/unlock the article
public
Références JTable::getInstance().
ContentModelArticle::checkout | ( | $ | uid = null | ) |
Method to checkout/lock the article
public
int | $uid | User ID of the user checking the article out |
Références $user, JTable::getInstance(), et JFactory::getUser().
ContentModelArticle::get | ( | $ | property, |
$ | default = null |
||
) |
Overridden get method to get properties from the article
public
string | $property | The name of the property |
mixed | $value | The value of the property to set |
Réimplémentée à partir de JObject.
& ContentModelArticle::getArticle | ( | ) |
Method to get content article data for the frontpage
Références $db, $query, $user, JText::_(), JTable::getInstance(), JFactory::getUser(), et JError::raiseError().
ContentModelArticle::hit | ( | ) |
Method to increment the hit counter for the article
public
Références $mainframe, et JTable::getInstance().
ContentModelArticle::isCheckedOut | ( | $ | uid = 0 | ) |
Tests if article is checked out
public
int | A user id |
Références elseif, et JError::raiseWarning().
ContentModelArticle::set | ( | $ | property, |
$ | value = null |
||
) |
Overridden set method to pass properties on to the article
public
string | $property | The name of the property |
mixed | $value | The value of the property to set |
Réimplémentée à partir de JObject.
ContentModelArticle::setId | ( | $ | id | ) |
ContentModelArticle::store | ( | $ | data | ) |
Method to store the article
public
Références $config, $data, $date, $mainframe, $query, $state, $text, $user, JText::_(), elseif, JFactory::getDate(), JDispatcher::getInstance(), JTable::getInstance(), JComponentHelper::getParams(), JFactory::getUser(), JPluginHelper::importPlugin(), jimport(), et JError::raiseError().
ContentModelArticle::storeVote | ( | $ | rate | ) |
Method to store a user rating for a content article
public
int | $rating | Article rating [ 1 - 5 ] |
Références $query, JError::raiseError(), et JError::raiseWarning().
ContentModelArticle::$_article = null |