phpDocumentor pivotx
[ class tree: pivotx ] [ index: pivotx ] [ all elements ]

Class: Pages

Source Location: /objects.php

Class Pages

Property Summary
mixed   $currentpage  
mixed   $index  

[ Top ]
Method Summary
Pages   Pages()   Initialisation
void   addChapter()   Add a chapter, and save the index
int   chapSort()   Sort the chapters based on the order and string comparison of chapter name if order is identical.
void   checkTimedPublish()   Checks if any pages set to 'timed publish' should be published.
void   delChapter()   Delete a chapter, and save the index
void   delPage()   Delete a single page
array   getChapter()   Get the information for a specific Chapter
void   getCurrentPage()   Gets the current page
array   getIndex()   Get the index of the available chapters and pages.
void   getLatestPages()   Gets the $amount latest pages as an array, suitable for displaying an overview
array   getPage()   Get a single page
array   getPageByUri()   Get a single page, as defined by its URI
array   getPageInAllLanguages()   Get a single page in all languages
void   saveIndex()   Save the index to the DB, using the selected model.
integer.   savePage()   Save a single page. Returns the uid of the inserted page.
void   updateChapter()   Update the information for a chapter, and save the index

[ Top ]
Properties
mixed   $currentpage [line 2538]

[ Top ]
mixed   $index [line 2537]

[ Top ]
Methods
Constructor Pages  [line 2545]

  Pages Pages( )

Initialisation



[ Top ]
addChapter  [line 2613]

  void addChapter( array $chapter  )

Add a chapter, and save the index

Parameters:
array   $chapter: 


[ Top ]
chapSort  [line 2781]

  int chapSort( array $a, array $b  )

Sort the chapters based on the order and string comparison of chapter name if order is identical.

Parameters:
array   $a: 
array   $b: 


[ Top ]
checkTimedPublish  [line 2802]

  void checkTimedPublish( )

Checks if any pages set to 'timed publish' should be published.



[ Top ]
delChapter  [line 2627]

  void delChapter( integer $uid  )

Delete a chapter, and save the index

Parameters:
integer   $uid: 


[ Top ]
delPage  [line 2747]

  void delPage( integer $uid  )

Delete a single page

Parameters:
integer   $uid: 


[ Top ]
getChapter  [line 2602]

  array getChapter( integer $id  )

Get the information for a specific Chapter

Parameters:
integer   $id: 


[ Top ]
getCurrentPage  [line 2722]

  void getCurrentPage( )

Gets the current page



[ Top ]
getIndex  [line 2573]

  array getIndex( [ $excerpts = false], [ $links = false]  )

Get the index of the available chapters and pages.

Parameters:
   $excerpts: 
   $links: 


[ Top ]
getLatestPages  [line 2734]

  void getLatestPages( integer $amount, [ $filter_user = ""]  )

Gets the $amount latest pages as an array, suitable for displaying an overview

Parameters:
integer   $amount: 
   $filter_user: 


[ Top ]
getPage  [line 2672]

  array getPage( integer $uid, [ $language = false]  )

Get a single page

Parameters:
integer   $uid: 
   $language: 


[ Top ]
getPageByUri  [line 2709]

  array getPageByUri( string $uri, [ $language = false]  )

Get a single page, as defined by its URI

Parameters:
string   $uri: 
   $language: 


[ Top ]
getPageInAllLanguages  [line 2688]

  array getPageInAllLanguages( integer $uid  )

Get a single page in all languages

Parameters:
integer   $uid: 


[ Top ]
saveIndex  [line 2655]

  void saveIndex( [boolean $reindex = true]  )

Save the index to the DB, using the selected model.

Parameters:
boolean   $reindex: 


[ Top ]
savePage  [line 2760]

  integer. savePage( array $page  )

Save a single page. Returns the uid of the inserted page.

Parameters:
array   $page: 


[ Top ]
updateChapter  [line 2642]

  void updateChapter( integer $uid, array $chapter  )

Update the information for a chapter, and save the index

Parameters:
integer   $uid: 
array   $chapter: 


[ Top ]

Documentation generated on Tue, 22 May 2012 01:07:34 +0200 by phpDocumentor 1.4.3