PHP Класс GBCommentDB, gitblog

Наследование: extends JSONStore
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$autocommitToRepo
$autocommitToRepoMessage
$lastComment
$post

Открытые методы

Метод Описание
__construct ( $file = '/dev/null', $post = null, $skeleton_file = null, $createmode = 432, $autocommit = true, $pretty_output = true )
append ( GBComment $comment, $index = null, $skipDuplicate = true )
commit ( )
encodeData ( )
get ( $index = null )
parseData ( )
remove ( $index )
resolveIndexPath ( $indexpath, $comment, $skipIfSameAsComment = null )
rollback ( $strict = true )
set ( $index, GBComment $comment = null ) Set or remove a comment.

Защищенные методы

Метод Описание
txWriteData ( )

Описание методов

__construct() публичный Метод

public __construct ( $file = '/dev/null', $post = null, $skeleton_file = null, $createmode = 432, $autocommit = true, $pretty_output = true )

append() публичный Метод

public append ( GBComment $comment, $index = null, $skipDuplicate = true )
$comment GBComment

commit() публичный Метод

public commit ( )

encodeData() публичный Метод

public encodeData ( )

get() публичный Метод

public get ( $index = null )

parseData() публичный Метод

public parseData ( )

remove() публичный Метод

public remove ( $index )

resolveIndexPath() публичный Метод

public resolveIndexPath ( $indexpath, $comment, $skipIfSameAsComment = null )

rollback() публичный Метод

public rollback ( $strict = true )

set() публичный Метод

By not passing the second argument the action will be to remove a comment rather than setting it to null. You can also pass an array as the first and only argument in which case the whole underlying data set is replaced. You have been warned. Return values: - After a set operation, true is returned on success, otherwise false. - After a remove operation, the removed comment is returned (if found and removed), otherwise false.
public set ( $index, GBComment $comment = null )
$comment GBComment

txWriteData() защищенный Метод

protected txWriteData ( )

Описание свойств

$autocommitToRepo публичное свойство

public $autocommitToRepo

$autocommitToRepoMessage публичное свойство

public $autocommitToRepoMessage

$lastComment публичное свойство

public $lastComment

$post публичное свойство

public $post