Свойство | Тип | Описание | |
---|---|---|---|
$_db | Horde_Db_Adapter | Handle for the current database connection. | |
$_pageNames | array | A cached list of all available page names. |
Метод | Описание | |
---|---|---|
__construct ( array $params = [] ) | Constructor. | |
getAllPages ( ) | ||
getAttachedFiles ( string $pageId, boolean $allversions = false ) : array | Retrieves data on files attached to a page. | |
getBackLinks ( $pagename ) | ||
getCharset ( ) : string | Returns the charset used by the backend. | |
getHistory ( $pagename ) | ||
getLikePages ( $pagename ) | ||
getMatchingPages ( $searchtext, $matchType = Wicked_Page::MATCH_ANY ) | ||
getPageById ( $id ) | ||
getPages ( $special = true, $no_cache = false ) | ||
getRecentChanges ( integer $days = 3 ) : array | Returns the most recently changed pages. | |
leastPopular ( integer $limit = 10 ) : array | Returns the least popular pages. | |
logAttachmentDownload ( integer $pageid, string $attachment ) | Logs an attachment download. | |
logPageView ( string $pagename ) | Logs a page view. | |
mostPopular ( integer $limit = 10 ) : array | Returns the most popular pages. | |
mostRecent ( integer $limit = 10 ) : array | Returns the most recently changed pages. | |
newPage ( string $pagename, string $text ) | Creates a new page. | |
removeAllAttachments ( integer $pageId ) | Removes all attachments from a page. | |
removeAllVersions ( $pagename ) | ||
removeAttachment ( integer $pageId, string $attachment, string $version = null ) | Removes a single version or all versions of an attachment from $pageId. | |
removeVersion ( $pagename, $version ) | ||
renamePage ( string $pagename, string $newname ) | Renames a page, keeping the page's history. | |
retrieveByName ( string $pagename ) : array | Retrieves the page of a particular name from the database. | |
retrieveHistory ( string $pagename, string $version ) : array | Retrieves a historic version of a page. | |
searchText ( string $searchtext, boolean $title = true ) : array | Finds pages with matches in text or title. | |
searchTitles ( string $searchtext, boolean $begin = false ) : array | Finds pages with matches in the title. | |
updateText ( $pagename, $text, $changelog ) |
Метод | Описание | |
---|---|---|
_attachFile ( array $file ) : integer | Handles the driver-specific portion of attaching a file. | |
_convertFromDriver ( mixed $value ) : mixed | Converts a value from the driver's charset to the default charset. | |
_convertToDriver ( mixed $value ) : mixed | Converts a value from the default charset to the driver's charset. | |
_retrieve ( string $table, array | string $where, string $orderBy = null, integer $limit = null ) : array | Retrieves a set of pages matching an SQL WHERE clause. |
public __construct ( array $params = [] ) | ||
$params | array | A hash containing connection parameters. |
protected _attachFile ( array $file ) : integer | ||
$file | array | See Wicked_Driver::attachFile(). |
Результат | integer | The new version of the file attached. |
protected _convertFromDriver ( mixed $value ) : mixed | ||
$value | mixed | A value to convert. |
Результат | mixed | The converted value. |
protected _convertToDriver ( mixed $value ) : mixed | ||
$value | mixed | A value to convert. |
Результат | mixed | The converted value. |
protected _retrieve ( string $table, array | string $where, string $orderBy = null, integer $limit = null ) : array | ||
$table | string | Table to retrieve pages from. |
$where | array | string | Where clause for sql statement (without the 'WHERE'). If an array the 1st element is the clause with placeholder, the 2nd element the values. |
$orderBy | string | Order results by this column. |
$limit | integer | Maximum number of pages to fetch. |
Результат | array | A list of page hashes. |
public getAttachedFiles ( string $pageId, boolean $allversions = false ) : array | ||
$pageId | string | This is the Id of the page for which we'd like to find attached files. |
$allversions | boolean | Whether to include all versions. If false or omitted, only the most recent version of each attachment is returned. |
Результат | array | An array of key/value arrays describing the attached files. |
public getCharset ( ) : string | ||
Результат | string | The backend's charset |
public getMatchingPages ( $searchtext, $matchType = Wicked_Page::MATCH_ANY ) |
public getRecentChanges ( integer $days = 3 ) : array | ||
$days | integer | The number of days to look back. |
Результат | array | Pages. |
public leastPopular ( integer $limit = 10 ) : array | ||
$limit | integer | The number of least popular pages to return. |
Результат | array | Pages. |
public logAttachmentDownload ( integer $pageid, string $attachment ) | ||
$pageid | integer | The page with the attachment. |
$attachment | string | The attachment name. |
public logPageView ( string $pagename ) | ||
$pagename | string | The page that was viewed. |
public mostPopular ( integer $limit = 10 ) : array | ||
$limit | integer | The number of most popular pages to return. |
Результат | array | Pages. |
public mostRecent ( integer $limit = 10 ) : array | ||
$limit | integer | The number of most recent pages to return. |
Результат | array | Pages. |
public removeAllAttachments ( integer $pageId ) | ||
$pageId | integer | A page ID. |
public removeAttachment ( integer $pageId, string $attachment, string $version = null ) | ||
$pageId | integer | The Id of the page the file is attached to. |
$attachment | string | The name of the file. |
$version | string | If specified, the version to delete. If null, then all versions of $attachment will be removed. |
public renamePage ( string $pagename, string $newname ) | ||
$pagename | string | The name of the page to rename. |
$newname | string | The page's new name. |
public retrieveByName ( string $pagename ) : array | ||
$pagename | string | The name of the page to retrieve. |
Результат | array |
protected Horde_Db_Adapter $_db | ||
Результат | Horde_Db_Adapter |
protected array $_pageNames | ||
Результат | array |