Homepage of www.easymagazine.net | Wem site map of www.easymagazine.net | Email the author of www.easymagazine.net

 

The Datamodel: Page

This class is an implementation of the active record pattern and has been created in order to simplify the access to the "Page" table.

Accessible methods:

  • public function getId():
  • return the id of the page instance.
  • public static function findById($id):
  • return a Page querying the database.
  • public static function findAllPublished():
  • return an array of Page(s) having the published flag setted to true.
  • public static function findAllPublishedOrdered():
  • return an array of Page(s) having the published flag setted to true, ordered by the field indexnumber in descend order. That is useful in order to print the pages in the order gived by the publisher.
  • public static function findAll():
  • return an array containing all Page(s) in the database.
  • public static function findAllOrdered():
  • return an array containing all Page(s) in the database ordered by the field indexnumber in descending order.
  • public static function findInAllTextFields($string):
  • return an array containing all Page(s) having at least a field matching the String $string.
  • public static function findAllOrderedByIndexNumber():
  • return an array containing all Page(s) in the database ordered by the field indexnumber.
  • public function findUpIndexNumber():
  • return the Page with the field indexnumber coming immediately after the courrent Page instance.
  • public function findDownIndexNumber():
  • return the Page with the field indexnumber previously the courrent Page instance.
  • public function save():
  • save the courrent instance.
  • public function delete():
  • delete from the database the courrent instance and reset all the instance fields.
  • protected function insert():
  • insert a new instance in the database.
  • protected function update():
  • update the courrent instance in the corresponding database record.
  • public function getMaxIndexNumber():
  • return an Integer value containing the bigger indexnumber field in the table "page".
  • public function getMaxId():
  • return an Integer value containing the bigger id field in the table "page".
  • public function getTitle():
  • return the title of the Page instance, filtered by the filters definited in the plugins activated by the publisher.
  • public function getUnfilteredTitle():
  • return the title of the Page instance, unfiltered.
  • public function setTitle($title):
  • set the title of the instance of the page.
  • public function getpublished():
  • return the content of the flag published in the Page instance.
  • public function setpublished($published):
  • set the flag published.
  • public function getIndexnumber():
  • return the number that defines the order of the pages for the published website.
  • public function setIndexnumber($indexnumber):
  • set the number that defines the order of the pages for the published website.
  • public function getSubtitle():
  • return the subTitle of the Page instance, filtered by the filters definited in the plugins activated.
  • public function getUnfilteredSubtitle():
  • return the subTitle of the Page instance, unfiltered.
  • public function setSubtitle($subtitle):
  • set the subTitle of the instance of the page.
  • public function getSummary():
  • return the Summary of the Page instance, filtered by the filters definited in the plugins activated.
  • public function getUnfilteredSummary():
  • return the Summary of the Page instance, unfiltered.
  • public function setSummary($summary):
  • set the Summary of the instance of the page.
  • public function getBody():
  • return the Body of the Page instance, filtered by the filters definited in the plugins activated.
  • public function getUnfilteredBody():
  • return the Body of the Page instance, unfiltered.
  • public function setBody($body):
  • set the Body of the instance of the page.
  • public function getTag():
  • return the Tag of the Page instance, filtered by the filters definited in the plugins activated.
  • public function getUnfilteredTag():
  • return the Tag of the Page instance, unfiltered.
  • public function setTag($tag):
  • set the Tag of the instance of the page.
  • public function getMetadescription():
  • return the Metadescription of the Page instance.
  • public function setMetadescription($metadescription):
  • set the Metadescription of the instance of the page.
  • public function getMetakeyword():
  • return the Metakeyword of the Page instance.
  • public function setMetakeyword($metakeyword):
  • set the Metakeyword of the instance of the page.
  • public function getCreated():
  • return the Creation date of the Page instance.
  • public function setCreated($created):
  • set the Creation date of the instance of the page.
  • public function getUpdated():
  • return the Update date of the Page instance.
  • public function setUpdated($updated):
  • set the Update date of the instance of the page.

 


Copyright © 2009, 2010, 2011 Fabio Mattei, designed by zuudesign.sk