• All Elements
Packages
  • [Backend]
  • [Implementation]
  • [Implementation]-[Backend]
  • [Plugins]
[Implementation]-[Backend]


  • Package Elements
  • Class Hierarchy

Quick Menu
  • Description

feindura - Docs

  • Back to feindura.org
  • Startpage
  • Feindura Class
Welcome
Documentation
CHANGELOG | LICENSE

$id parameter example


Show Example
  1. <?php
  2.   // The "next","previous","first" and "last" is always relative to the current $this->page and $this->category property.
  3.   // If there is an ID, "prev" or "next" for the page value, it will always discard the category value and load the right page.
  4.   // Note: When using "previous","next","first" or "last" it will jump over pages/categories which are not public and return the next one.
  5.  
  6.   empty                  // load the current page
  7.   false/true             // same as above
  8.   array(false,false)     // same as above
  9.  
  10.   2                      // load page with ID 2
  11.   'rand'                 // load a random page of the current category
  12.   array('rand',false)    // same as above
  13.  
  14.   'next'                 // load the next page in the current category
  15.   array('next',false)    // the same as above
  16.   array('next','rand')   // the same as above (it would discard the category ID)
  17.   array(2,45)            // load the page with ID 2 (it would discard the category ID)
  18.  
  19.   array(false,3)         // load the first page of category with ID 3
  20.  
  21.   array(false,'next')    // load the first page of the next category
  22.   array(false,'prev')    // load the first page of the previous category
  23.  
  24.   array('last',false)    // load the last page of the current category
  25.   array('last','next')   // load the last page of the next category
  26.   array('first','last')  // load the first page of the last category
  27.  
  28.   array('rand','next')   // load a random page of the next category
  29.   array('rand','rand')   // load a random page of a random category
  30.   array('first','rand')  // load the first page of a random category
  31.  
  32.   ...
  33.  
  34. ?>


The feindura API reference was generated from the comments in the feindura source code on Sat, 01 Dec 2012 21:56:08 +0000 by phpDocumentor 1.4.3
feindura - Flat File Content Management System, Copyright © Fabian Vogelsteller [frozeman.de]