Skip to content

NestboxPHP/Babbler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Babbler

Settings

Setting Description Default
babblerAuthorSize defines author column character width 32
babblerCategorySize defines category column character width 64
babblerSubCategorySize defines sub_category column character width 64
babblerTitleSize defines title column character width 255

Usage

Add Entry

add_entry(
    string $category,
    string $subCategory,
    string $title,
    string $content,
    string $author,
    string $created = null,
    string $published = "",
    bool   $isDraft = false,
    bool   $isHidden = false
): int|false

Edit Entry

edit_entry(
    string|int $entry_id,
    string     $editor,
    string     $category = "",
    string     $subCategory = "",
    string     $title = "",
    string     $content = "",
    string     $published = "",
    bool       $isDraft = null,
    bool       $isHidden = null,
): int|false

Delete Entry

delete_entry(int $entry_id): bool

Search Entries

search_entries(string $words, string $category = "*", bool $strict = true, int $buffer = 100): array

Search Title

search_title(string $title): array

Search URL Title

search_url_title(string $title): array

Fetch Entry Table

fetch_entry_table(string $orderBy = "", string $sort = "", int $limit = 50, int $start = 0): array

Fetch Entry

fetch_entry(int $entry_id): array

Fetch Categories

fetch_categories(): array

Fetch Subcategories

fetch_sub_categories(string $category = ''): array

Fetch Entries by Category

fetch_entries_by_category(string $category, string $subCategory = '', string $orderBy = 'created', string $sort = '', int $start = 0, int $limit = 10): array

Fetch Entry by Category and Title

fetch_entry_by_category_and_title(string $category, string $title, string $subCategory = ''): array