Manage articles in an Onpub database.
This class contains the methods to manage the data contained in an OnpubArticles table.
Located in /OnpubArticles.php (line 16)
Controls whether or not the methods in this class use transactions when they access the database.
By default, this is set to TRUE and database transactions will be used where necessary. Set this to FALSE if you want to manage transactions yourself.
Connect to an Onpub database.
All the methods in this class which query the database use the database connection provided by the PDO object required by this constructor. Currently, Onpub only supports MySQL as a database for storing content. Therefore, when constructing the PDO object, only the PDO_MYSQL driver is supported as a PDO data source.
All the methods in this class require the Onpub schema to be installed in the PDO-connected database. The OnpubDatabase class contains methods to manage the Onpub schema. The Onpub schema can also be installed by clicking the "Install the schema" link once logged in to the Onpub web interface. The schema generally only has to be installed once per database.
Get the total number of articles in the database.
Delete an article from the database.
Get a single article from the database.
Get the ID of an article in the database.
Looks for an article in the database with the same title and content. If there's a match, the ID of the article is returned.
Insert new article(s) into the database.
Search for articles in the database.
Get multiple articles from the database.
Update an article already in the database.
If you set the article's sectionIDs to NULL, it will be unmapped from any sections it was previously mapped to.
Documentation generated on Fri, 08 Feb 2013 04:02:18 -0500 by phpDocumentor 1.4.4