| [ Index ] |
|
Code source de SPIP Agora 1.4 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 4535 lignes (139 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 1 fichier Agora1-4/ecrire/include/bd/inc_rubrique_factory.php |
BD_article:: (146 méthodes):
factory()
BD_article()
getArticleId()
setArticleId()
getSurtitre()
setSurtitre()
getTitre()
setTitre()
getSoustitre()
setSoustitre()
getRubriqueId()
setRubriqueId()
getRubriqueIdsHisto()
getDescriptif()
setDescriptif()
getChapo()
setChapo()
getTexte()
setTexte()
getPs()
setPs()
getDate()
setDate()
getStatut()
setStatut()
getSecteurId()
setSecteurId()
getMajDate()
getMajDateIso()
setMajDate()
getExport()
setExport()
getRedactionDate()
setRedactionDate()
getVisites()
setVisites()
getReferers()
setReferers()
getPopularite()
setPopularite()
getAccepterForum()
setAccepterForum()
getAuteurModif()
setAuteurModif()
getModificationDate()
setModificationDate()
getExtra()
setExtra()
getLang()
setLang()
getLangChoisie()
setLangChoisie()
getTradId()
setTradId()
getNomSite()
setNomSite()
getUrlSite()
setUrlSite()
getVersionId()
setVersionId()
getActiverHistorique()
setActiverHistorique()
getIsLoaded()
setIsLoaded()
create()
update()
load()
loadLightWeight()
loadLightWeightIfStatut()
delete()
unlock()
_fetchData()
_fetchLightWeightData()
deleteMajDate()
deleteArticleForStatut()
deleteAuteurs()
deleteAuteur()
deleteAllAuteurIdsExceptArticleIds()
deleteAllAuteurIdsExceptAuteurIds()
addAuteur()
isAuthor()
getRubriqueIdsByStatus()
getRubriqueIds()
getMaxDateByRubriqueAndStatus()
getRecentArticleIds()
updateSecteursForRubriques()
updateTradIdForTradId()
updateAccepterForum()
isPostDated()
hasLastModified()
getMaxDateHeure()
getLastModifiedUserName()
whenWasModified()
howManyWritten()
howManyPublished()
howManyProposed()
hasDocument()
getToday()
getPublishedAndPopular()
getRecentPublishedAndPopularButNotSeen()
getPublishedAndPopularFromBeginning()
getOpened()
getExtract()
updateVisites()
computePopularity()
getAuteurIdsForArticleId()
getAllForRubriqueIds()
getArticleIdsForAuteurId()
getAuteursForArticleId()
HowManyArticleForMot()
howManyArticlesForStatut()
getAllDocumentsLies()
getAllForArticleIds()
getAllArticleIds()
getAllForRubriqueId()
addBookmark()
deleteBookmark()
isBookmark()
getAllForStatut()
getArticlesOfTheDay()
getAllMotherLang()
getAllArticleForStatutsOrderBy()
howManyArticleForTradID()
howManyXForRubriqueId()
howManyX()
howManyXGroupByLang()
getAllArticleForTradId()
getArticlesForStatutAndAuteur()
getArticlesForRubriqueId()
getArticlesForRubriqueIdAndAuteurIdAndIDontKnowWhyButIloveYou()
isStatutDoneArticleByAuteur()
getLangUsed()
calculatePublishedRubrique()
calculateNoTraductionForRubrique()
getTradStatistics()
switchVersion()
getAllForVersion()
create_historique()
countHistorique()
switchHistorique()
updateVersionComponent()
setPublicationDate()
countAuteurs()
updateEmbargo()
getArticleIds()
getUrl()
Classe: BD_article - X-Ref
BD_article is a base class for article business persistence abstraction implementations, and must be| factory($dbParameters, $dbOptions = null) X-Ref |
| This method is a factory static method. It should be used to get any specific implementation instace of Article business data type. param: BD_parameters DB connection parameters |
| BD_article() X-Ref |
| DB_article constructor. |
| getArticleId() X-Ref |
| Pas de description |
| setArticleId($articleId) X-Ref |
| Pas de description |
| getSurtitre() X-Ref |
| Pas de description |
| setSurtitre($surtitre) X-Ref |
| Pas de description |
| getTitre() X-Ref |
| Pas de description |
| setTitre($titre) X-Ref |
| Pas de description |
| getSoustitre() X-Ref |
| Pas de description |
| setSoustitre($soustitre) X-Ref |
| Pas de description |
| getRubriqueId() X-Ref |
| Pas de description |
| setRubriqueId($rubriqueId) X-Ref |
| Pas de description |
| getRubriqueIdsHisto() X-Ref |
| Pas de description |
| getDescriptif() X-Ref |
| Pas de description |
| setDescriptif($descriptif) X-Ref |
| Pas de description |
| getChapo() X-Ref |
| Pas de description |
| setChapo($chapo) X-Ref |
| Pas de description |
| getTexte() X-Ref |
| Pas de description |
| setTexte($texte) X-Ref |
| Pas de description |
| getPs() X-Ref |
| Pas de description |
| setPs($ps) X-Ref |
| Pas de description |
| getDate() X-Ref |
| Pas de description |
| setDate($date) X-Ref |
| Pas de description |
| getStatut() X-Ref |
| Pas de description |
| setStatut($statut) X-Ref |
| Pas de description |
| getSecteurId() X-Ref |
| Pas de description |
| setSecteurId($secteurId) X-Ref |
| Pas de description |
| getMajDate() X-Ref |
| Pas de description |
| getMajDateIso() X-Ref |
| Pas de description |
| setMajDate($majDate) X-Ref |
| Pas de description |
| getExport() X-Ref |
| Pas de description |
| setExport($export) X-Ref |
| Pas de description |
| getRedactionDate() X-Ref |
| Pas de description |
| setRedactionDate($redactionDate) X-Ref |
| Pas de description |
| getVisites() X-Ref |
| Pas de description |
| setVisites($visites) X-Ref |
| Pas de description |
| getReferers() X-Ref |
| Pas de description |
| setReferers($referers) X-Ref |
| Pas de description |
| getPopularite() X-Ref |
| Pas de description |
| setPopularite($popularite) X-Ref |
| Pas de description |
| getAccepterForum() X-Ref |
| Pas de description |
| setAccepterForum($accepterForum) X-Ref |
| Pas de description |
| getAuteurModif() X-Ref |
| Pas de description |
| setAuteurModif($auteurModif) X-Ref |
| Pas de description |
| getModificationDate() X-Ref |
| Pas de description |
| setModificationDate($modificationDate) X-Ref |
| Pas de description |
| getExtra() X-Ref |
| Pas de description |
| setExtra($extra) X-Ref |
| Pas de description |
| getLang() X-Ref |
| Returns the lang fields return: String |
| setLang($lang) X-Ref |
| Sets the lang fields param: String |
| getLangChoisie() X-Ref |
| get Lang functions activation. |
| setLangChoisie($langChoisie) X-Ref |
| Set Lang functions activation. |
| getTradId() X-Ref |
| get Trad id. |
| setTradId($tradId) X-Ref |
| Set Trad Id. |
| getNomSite() X-Ref |
| get Site Name. |
| setNomSite($nomSite) X-Ref |
| Set Site Name. |
| getUrlSite() X-Ref |
| get Site Url. |
| setUrlSite($urlSite) X-Ref |
| Set Site Url. |
| getVersionId() X-Ref |
| Get the version Id |
| setVersionId($versionId) X-Ref |
| Set the Version Id |
| getActiverHistorique() X-Ref |
| Pas de description |
| setActiverHistorique($activerHistorique) X-Ref |
| Pas de description |
| getIsLoaded() X-Ref |
| Pas de description |
| setIsLoaded($isLoaded) X-Ref |
| Pas de description |
| create() X-Ref |
| This method is used to create a new article in the database |
| update() X-Ref |
| This method is used to update this article in the database |
| load($idArticle) X-Ref |
| This method is used to load an article from the database param: int $idArticle id of article to load |
| loadLightWeight($idArticle) X-Ref |
| This method is used to load an article from the database selecting only small size fields from the DB param: int $idArticle id of article to load |
| loadLightWeightIfStatut($idArticle, $statut) X-Ref |
| This method is used to load an article from the database selecting only small size fields from the DB param: int $idArticle id of article to load param: String $statut of article to load |
| delete($idArticle) X-Ref |
| This method is used to delete an article from the database param: int $idArticle id of article to delete |
| unlock($idArticle, $connect_id_auteur) X-Ref |
| This method unlock an Article param: int $idArticle id of article to unlock |
| _fetchData($row) X-Ref |
| This method is used to fetch result set fields into the object fields param: int $idArticle id of article to load |
| _fetchLightWeightData($row) X-Ref |
| This method is used to fetch result set fields into the object fields used with loadLightWeight param: int $idArticle id of article to load |
| deleteMajDate($mydate) X-Ref |
| This method is used to delete all articles former to mydate |
| deleteArticleForStatut($statut, $maj) X-Ref |
| This method is used to delete all deleted articles |
| deleteAuteurs() X-Ref |
| This method is used to delete all authors attached to this article |
| deleteAuteur($authorId) X-Ref |
| This method is used to delete a given author attached to this article param: int $authorId author to delete |
| deleteAllAuteurIdsExceptArticleIds($articles) X-Ref |
| This method is used to delete authors not attached to a list of articleIds param: int list of rubriqueIds |
| deleteAllAuteurIdsExceptAuteurIds($auteurs) X-Ref |
| Pas de description |
| addAuteur($auteurId) X-Ref |
| This method is used to attach an author to this article param: int $authorId autor to attach |
| isAuthor($auteurId) X-Ref |
| This method determines whether or not a given author is an author of this article param: int $auteurId author to check return: boolean |
| getRubriqueIdsByStatus($statut, $postDated) X-Ref |
| This method is used to get all "rubrique" containing published articles param: String status to look for param: boolean look for postdated articles ? return: mixed result array of IDs or PEAR::Error object |
| getRubriqueIds() X-Ref |
| This method is used to get all "rubrique" containing published articles |
| getMaxDateByRubriqueAndStatus($rubriqueId, $statut, $postDated) X-Ref |
| This method is used to the latest date of a published article for a given rubrique with a given status and a flag to determine whether or not to handle postdated articles param: int $rubriqueId param: String status to look for param: boolean look for postdated articles ? return: mixed Date or PEAR::Error object |
| getRecentArticleIds() X-Ref |
| This method returns an array of article ids, representing the 10 most recent ones return: Array containing the wished IDs |
| updateSecteursForRubriques($secteurId, $listRubriques) X-Ref |
| This method is used to update the sector racttached to different articles param: int id sector param: array Rubriques id list return: mixed nothing or PEAR::Error object |
| updateTradIdForTradId($idTradOld, $idTradNew) X-Ref |
| This method is used to update the sector racttached to different articles param: int id sector param: array Rubriques id list return: mixed nothing or PEAR::Error object |
| updateAccepterForum($updateType, $acceptForum) X-Ref |
| This method is used to update the forum acceptation flag for an article subset param: String update type param: boolean accept forum ? return: mixed void or PEAR::Error object |
| isPostDated() X-Ref |
| This method tests whether or not this article is postdated. return: mixed boolean or PEAR::Error object |
| hasLastModified($auteurId) X-Ref |
| This method tests whether a given author has last modified this article return: mixed boolean or PEAR::Error object |
| getMaxDateHeure($id_rubrique, $statut, $post_dates = 'non') X-Ref |
| Pas de description |
| getLastModifiedUserName() X-Ref |
| This method returns the last contributor of this article name return: mixed String or PEAR::Error object |
| whenWasModified() X-Ref |
| Pas de description |
| howManyWritten($authorId, $allowedStatus = '') X-Ref |
| This method returns the number of article written by a given author return: int |
| howManyPublished() X-Ref |
| This method returns the number of published articles return: int |
| howManyProposed() X-Ref |
| This method returns the number of proposed articles return: int |
| hasDocument($documentId) X-Ref |
| This method tests whether or not this article contains any document return: boolean |
| getToday($month, $year) X-Ref |
| Returns an array of Article representing the current day published articles. This method is abstract and will be implemented in a future version, when the data model has been updated. param: $month param: $year return: Array of Article |
| getPublishedAndPopular() X-Ref |
| This method returns an array of Article objects that are published and that have already been visited return: Array wished array of articles |
| getRecentPublishedAndPopularButNotSeen($recentIds, $seenIds) X-Ref |
| This method returns an array of Article objects that are published and that have already been visited param: String $recentIds comma separated ids of recent articles param: String $seenIds comma separated ids of seen articles return: Array wished array of articles |
| getPublishedAndPopularFromBeginning() X-Ref |
| This method returns an array of Article objects return: Array wished array of articles |
| getOpened($authorId) X-Ref |
| Returns an array of Article representing the currently opened articles for a given author This method is abstract and will be implemented in a future version, when the data model has been updated. param: int $authorId return: Array of Article |
| getExtract() X-Ref |
| Returns an extract of this article instance return: String representing the extract of the article |
| updateVisites($articleIds, $visits) X-Ref |
| Updates a set of articles visites param: array $articleIds containing all article IDs of articles to update param: int $visites representing the new value for visites return: mixed DB::Error if an error occured, nothin otherwise |
| computePopularity() X-Ref |
| Pas de description |
| getAuteurIdsForArticleId($articleId) X-Ref |
| Returns an array of Author. param: $articleId return: Array of Author |
| getAllForRubriqueIds($rubriques) X-Ref |
| Returns an array of Article. param: $rubriques return: Array of Article |
| getArticleIdsForAuteurId($auteurId) X-Ref |
| Returns an array of Author. param: $auteurId return: Array of Author |
| getAuteursForArticleId($articleId) X-Ref |
| Returns an array of Author. param: $articleId return: Array of Author |
| HowManyArticleForMot($conf_mot, $aff_articles, $statut) X-Ref |
| Pas de description |
| howManyArticlesForStatut($statut) X-Ref |
| Pas de description |
| getAllDocumentsLies($id_article, $mode, $docs_exclus = "", $id_doublons = null) X-Ref |
| Returns an array of Document. param: $id_article return: Array of Document |
| getAllForArticleIds($ids) X-Ref |
| Pas de description |
| getAllArticleIds() X-Ref |
| Pas de description |
| getAllForRubriqueId($rubriqueId, $statut = null) X-Ref |
| Pas de description |
| addBookmark($id_auteur) X-Ref |
| Pas de description |
| deleteBookmark($id_auteur) X-Ref |
| Pas de description |
| isBookmark($id_auteur) X-Ref |
| Pas de description |
| getAllForStatut($statut, $orderBy = null, $desc = null) X-Ref |
| Returns an array of Article. param: $statut return: Array of Article |
| getArticlesOfTheDay($date) X-Ref |
| Returns an array of Articles Of The Day.. param: $date return: Array of Article |
| getAllMotherLang() X-Ref |
| This method return la langue des rubriques mere pour chaque article fils return: Array |
| getAllArticleForStatutsOrderBy($statuts, $critere = 'titre') X-Ref |
| This method return la liste des rubriques param: statuts String param: critere return: Array |
| howManyArticleForTradID($id_trad) X-Ref |
| Pas de description |
| howManyXForRubriqueId($critere) X-Ref |
| Pas de description |
| howManyX($critere) X-Ref |
| Pas de description |
| howManyXGroupByLang($critere) X-Ref |
| Pas de description |
| getAllArticleForTradId($tradId) X-Ref |
| This method return la liste des articles param: statuts String param: critere return: Array |
| getArticlesForStatutAndAuteur($statut, $auteurId) X-Ref |
| This method return la liste des articles préparés par un auteur donné param: statuts String param: critere return: Array |
| getArticlesForRubriqueId($rubriqueId, $orderBy = null, $desc = null) X-Ref |
| This method return la liste des articles d'une rubrique return: Array |
| getArticlesForRubriqueIdAndAuteurIdAndIDontKnowWhyButIloveYou($rubriqueId, $auteurId) X-Ref |
| This method return la liste des articles d'une rubrique en fonction de l'auteur ou de leurs statuts. return: Array |
| isStatutDoneArticleByAuteur($statut, $auteurId) X-Ref |
| This method returns return: int |
| getLangUsed() X-Ref |
| This method return la liste des langues utilisés par les articles. return: Array |
| calculatePublishedRubrique($trad_lang) X-Ref |
| This method return la liste des langues utilisés par les articles. return: Array |
| calculateNoTraductionForRubrique($trad_lang) X-Ref |
| This method return la liste des langues utilisés par les articles. return: Array |
| getTradStatistics($trad_lang) X-Ref |
| This method return la liste des langues utilisés par les articles. return: Array |
| switchVersion($id_article, $id_article_version) X-Ref |
| This method switch an article with another version of itself return: Void |
| getAllForVersion($orderby) X-Ref |
| This method return an all articles for one version |
| create_historique() X-Ref |
| fabrique un historique |
| countHistorique() X-Ref |
| compte le nbre dentree ds la table historique pour cet article |
| switchHistorique($id_article_historique) X-Ref |
| modifie l'article à partir d'un historique |
| updateVersionComponent($id_source, $id_destination, $table_name, $field_name, $nouvelle_version="non") X-Ref |
| Update a new article version with all component around itself (mot cles, auteurs...) |
| setPublicationDate( $date, $time = null ) X-Ref |
| Pas de description |
| countAuteurs() X-Ref |
| Pas de description |
| updateEmbargo() X-Ref |
| Cette méthode retourne la date de publication d'un article la plus proche de la date courante |
| getArticleIds( $criteres = array() X-Ref |
| Pas de description |
| getUrl( $edit = false ) X-Ref |
| Pas de description |
| Généré le : Sat Feb 24 14:40:03 2007 | par Balluche grâce à PHPXref 0.7 |