static string display_navi(
array
$interval, array
$entire, string
$basehref, [string
$cssclass = '']
)
|
|
Prev Next Navigation
Parameters:
|
array |
$interval: |
array($start, $end) current showing interval |
|
array |
$entire: |
array($start, $end) entire interval |
|
string |
$basehref: |
base href |
|
string |
$cssclass: |
|
API Tags:
Information Tags:
| Version: | $Id: v 1.1 2008-06-07 07:23:17Z sonots $ |
static array get_prevnext(
array
$current, [array
$entire = array(NULL, NULL)]
)
|
|
Get prev next intervals
Example)
$current = array(3, 10); // 3rd to 10th
// array(-5, 2), array(11, 18)
$entire = array(1, 100);
// array(1, 2), array(11, 18)
Parameters:
|
array |
$current: |
|
|
array |
$entire: |
use if you want to assure entire interval |
API Tags:
Information Tags:
| Version: | $Id: v 1.1 2008-06-07 07:23:17Z sonots $ |
PluginSonotsPagelist PluginSonotsPagelist(
array
$pages
)
|
|
constructor
Parameters:
API Tags:
Information Tags:
| Version: | $Id: v 1.0 2008-06-07 07:23:17Z sonots $ |
string display_pages(
[string
$cssclass = '']
)
|
|
Get HTML of page list
Parameters:
|
string |
$cssclass: |
css class |
API Tags:
| Return: | list html |
| Access: | public |
Information Tags:
| Version: | $Id: v 1.0 2008-06-07 07:23:17Z sonots $ |
void gen_metas(
string
$metakey, [array
$args = array()]
)
|
|
Generate the specific meta infomration to pages
Parameters:
|
string |
$metakey: |
meta information name |
|
array |
$args: |
if arguments required to set meta information |
API Tags:
Information Tags:
| Version: | $Id: v 1.0 2008-06-07 07:23:17Z sonots $ |
mixed get_meta(
int
$key, string
$metakey
)
|
|
Get a specific meta information
Parameters:
|
int |
$key: |
page hash array key |
|
string |
$metakey: |
meta information name |
API Tags:
Information Tags:
| Version: | $Id: v 1.0 2008-08-15 07:23:17Z sonots $ |
array get_metas(
string
$metakey
)
|
|
Get the specific meta informations of pages
Parameters:
|
string |
$metakey: |
meta information name |
API Tags:
| Return: | metas |
| Access: | public |
Information Tags:
| Version: | $Id: v 1.0 2008-06-07 07:23:17Z sonots $ |
void grep_by(
string
$meta, string
$func, mixed
$pattern, [boolean
$inverse = FALSE]
)
|
|
Grep out metapages by speific fields
Parameters:
|
string |
$meta: |
name of meta information to be greped |
|
string |
$func: |
func name - preg : grep by preg
- ereg : grep by ereg
- mb_ereg : grep by mb_ereg
- prefix : remains if prefix matches (strpos)
- mb_prefix: (mb_strpos)
- eq : remains if equality holds
- ge : remains if greater or equal to
- le : remains if less or equal to
|
|
mixed |
$pattern: |
|
|
boolean |
$inverse: |
grep -v |
API Tags:
Information Tags:
| Version: | $Id: v 1.0 2008-06-07 07:23:17Z sonots $ |
array init_metas(
string
$metakey, mixed
$value
)
|
|
Initialize the specific meta informations of metapages
Parameters:
|
string |
$metakey: |
meta information name |
|
mixed |
$value: |
initialization value |
API Tags:
| Return: | metas |
| Access: | public |
void map_metas(
string
$metakey, callback
$callback
)
|
|
Applies the callback to the specific meta informations of metapages
Parameters:
|
string |
$metakey: |
meta information name |
|
callback |
$callback: |
|
API Tags:
boolean pad_dirnodes(
string
$prefix
)
|
|
Pad non existing dir nodes to construct hierarchical tree
Example) A A A/A => A/A B/B B(non exist) B/B
Parameters:
|
string |
$prefix: |
current path (need to create relname) |
API Tags:
| Return: | some intances were added or not |
| Access: | public |
Information Tags:
| Version: | $Id: v 1.1 2008-06-07 07:23:17Z sonots $ |
void slice(
int
$offset, mixed
$length
)
|
|
Slice metapages
Parameters:
|
int |
$offset: |
|
|
mixed |
$length: |
int or NULL (means forever) |
API Tags:
Information Tags:
| Version: | $Id: v 1.0 2008-06-07 07:23:17Z sonots $ |
void sort_by(
string
$meta, [boolean
$reverse = false]
)
|
|
sort metapages by a meta
Parameters:
|
string |
$meta: |
meta name |
|
boolean |
$reverse: |
sort in reverse order |
API Tags:
Information Tags:
| Version: | $Id: v 1.2 2008-06-10 07:23:17Z sonots $ |