static string date(
int
$timestamp
)
|
|
Get date format of a timestamp
Parameters:
API Tags:
static int depth(
string
$path
)
|
|
Get directory depth of a path
Parameters:
API Tags:
static boolean exist(
string
$page
)
|
|
Get existence of a page
Parameters:
API Tags:
static string filename(
string
$page
)
|
|
Get local filename of a page
Parameters:
API Tags:
static string|null firsthead(
string
$page, [boolean
$usecache = true]
)
|
|
Get first headline string of the page
Parameters:
|
string |
$page: |
|
|
boolean |
$usecache: |
use toc cache or not |
API Tags:
static string link(
string
$page, string
$linkstr, string
$option
)
|
|
Get link of a page
Parameters:
|
string |
$page: |
pagename |
|
string |
$linkstr: |
linkstr |
|
string |
$option: |
option - page : link to page
- anchor : link to anchor
- off : no link
|
API Tags:
static string linkstr(
string
$page, [string
$option = 'relative'], [string
$currdir = ''], [boolean
$usecache = true]
)
|
|
Get string used in html link
Parameters:
|
string |
$page: |
pagename |
|
string |
$option: |
option - name|page|pagename|absolute: pagename (absolute path)
- base|basename : page basename
- title : TITLE: of page
- headline|firsthead : The first headline of a page
- relative|relname : relative pagename from currdir
|
|
string |
$currdir: |
current dir name($currdir is required for relative) |
|
boolean |
$usecache: |
use cache of Toc or not (used for title and headline) |
API Tags:
static string newdate(
int
$timestamp
)
|
|
Get New! of a page
Parameters:
API Tags:
static boolean newpage(
string
$page
)
|
|
Get newpage information of a page
Parameters:
API Tags:
| Access: | public |
| Uses: | sonots::is_newpage |
static int popular(
string
$page, string
$when
)
|
|
Get number of popular
Parameters:
|
string |
$page: |
pagename |
|
string |
$when: |
'total' or 'today' or 'yesterday' or 'recent' |
API Tags:
static string reading(
string
$page
)
|
|
Get reading of a page
Parameters:
API Tags:
static string relname(
string
$page, [string
$currdir = '']
)
|
|
Get relative path of a page (lower path only)
Parameters:
|
string |
$page: |
|
|
string |
$currdir: |
|
API Tags:
static string timestamp(
string
$page
)
|
|
Get timestamp of a page
Parameters:
API Tags:
static string|null title(
string
$page, [boolean
$usecache = true]
)
|
|
Get TITLE of the page
Parameters:
|
string |
$page: |
|
|
boolean |
$usecache: |
use toc cache or not |
API Tags:
Get Table of Contents of a page
Parameters:
|
string |
$page: |
|
|
boolean |
$usecache: |
use toc cache or not |
API Tags:
PluginSonotsMetapage PluginSonotsMetapage(
string
$page
)
|
|
constructor
Parameters:
API Tags:
Generate modified date property of this page
API Tags:
Generate depth property of this page
API Tags:
| Access: | public |
| Uses: | detph |
Generate exist property of this page
API Tags:
Generate local filename property of this page
API Tags:
void gen_firsthead(
[boolean
$usecache = true]
)
|
|
Generate firsthead property of this page
Parameters:
API Tags:
void gen_info(
[array
$order = array()]
)
|
|
Generate info property of this page
Parameters:
|
array |
$order: |
array of new,date specifying order. |
API Tags:
void gen_leaf(
boolean
$leaf
)
|
|
Generate leaf property of this page
leaf can not be determined item by item
Parameters:
API Tags:
void gen_link(
[string
$optlinkstr = 'relative'], [string
$optlink = 'page'], [string
$currdir = ''], [boolean
$usecache = true]
)
|
|
Generate link property of this page
Parameters:
|
string |
$optlinkstr: |
|
|
string |
$optlink: |
|
|
string |
$currdir: |
computed as default |
|
boolean |
$usecache: |
use Toc cache or not (used for title and firsthead) |
API Tags:
void gen_linkstr(
[string
$optlinkstr = 'relative'], [string
$currdir = ''], [boolean
$usecache = true]
)
|
|
Generate linkstr property of this page
Parameters:
|
string |
$optlinkstr: |
|
|
string |
$currdir: |
computed as default |
|
boolean |
$usecache: |
use Toc cache or not (used for title and firsthead) |
API Tags:
Generate New! property of this page
API Tags:
Generate newpage property of this page
API Tags:
void gen_popular(
[string
$when = 'today']
)
|
|
Generate popular property of this page
Parameters:
API Tags:
Generate reading (how to read Kanji) property of this page
API Tags:
void gen_relname(
[string
$currdir = '']
)
|
|
Generate relative name property of this page
Parameters:
API Tags:
Generate timestamp property of this page
API Tags:
void gen_title(
[boolean
$usecache = true]
)
|
|
Generate title property of this page
Parameters:
API Tags:
void gen_toc(
[boolean
$usecache = true]
)
|
|
Generate Table of Contents property of this page
Parameters:
API Tags: