[ Index ]

PHP Cross Reference of PivotX trunk SVN

title

Body

[close]

/pivotx/modules/ -> pages_flat.php (summary)

(no description)

File Size: 527 lines (16 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PagesFlat:: (14 methods):
  PagesFlat()
  getIndex()
  saveIndex()
  setIndex()
  addChapter()
  delChapter()
  updateChapter()
  getPage()
  getPageByUri()
  getLatestPages()
  delPage()
  savePage()
  checkTimedPublish()
  sort()


Class: PagesFlat  - X-Ref

Class to work with Pages, using the flat file storage model.

PagesFlat()   X-Ref
Initialisation.

return: PagesFlat

getIndex($filter_user="", $excerpts=false, $links=false)   X-Ref
Get the current index of the pages.

return: array

saveIndex($reindex=true)   X-Ref
Save the index to the file system


setIndex( $index )   X-Ref
Sets the index from

param: array $index

addChapter($chapter)   X-Ref
Add a chapter.

param: array $chapter

delChapter($uid)   X-Ref
Delete a chapter.

param: integer $uid

updateChapter($id,$chapter)   X-Ref
Update the information for a chapter.

param: integer $id
param: array $chapter

getPage($uid)   X-Ref
Get a single page by its uid

param: integer $uid
return: array

getPageByUri($uri)   X-Ref
Get a single page by its URI

param: string $uri
return: array

getLatestPages($amount, $filter_user="")   X-Ref
Gets a list of the $amount latest pages

param: integer $amount

delPage($uid)   X-Ref
Delete a single page

param: integer $uid

savePage($page)   X-Ref
Save a single page

param: integer $id
param: array $page

checkTimedPublish()   X-Ref
Checks if any pages set to 'timed publish' should be published.

This code might have to be optimized to only check the latest pages for
a very big site.

sort($a, $b)   X-Ref
Sort the pages based on the order and string comparison
of (page) title if order is identical.

param: array $a
param: array $b
return: int



Generated: Mon May 21 01:08:32 2012 Cross-referenced by PHPXref 0.6