Метод | Описание | |
---|---|---|
__construct ( ) : void | Constructor | |
add_article ( array $data ) : mixed | Add Article | |
add_fields ( $data ) : mixed | Add Listing Fields | |
add_hit ( $id ) : boolean | Add Hit | |
check_uri ( string $article_uri, $article_id = FALSE ) : boolean | Check URI | |
delete_article ( $article_id ) : TRUE | Delete Article | |
delete_article_attachments ( $id ) | Delete all Uploaded files. | |
delete_article_tags ( $id ) | Delete all article tags. | |
edit_article ( $article_id, array $data ) : boolean | Edit Category | |
get_article ( $query ) | Get Article | |
get_article_by_uri ( $uri ) : array | Get Article By URI. | |
get_articles ( ) : mixed | Get Article | |
get_articles_by_catid ( $id, $limit, $current_row, $show_count = TRUE ) : mixed | Get Article By Cat ID. | |
get_attachments ( $id ) : array | Get Attachments | |
get_category_relationship ( $article_id = '' ) : boolean | Get Product to Categories | |
get_cats_by_article ( $id ) : array | Get Category By Article. | |
get_highest_rated ( $number = 25 ) : array | Get Highest Rated. | |
get_latest ( $number = 25 ) : array | Get Latest Articles. | |
get_most_popular ( $number = 25 ) : array | Get Most Popular. | |
get_related ( $id, $number = 5 ) : array | Get Related Articles. | |
glossary ( $content ) : string | Glossary | |
insert_cats ( $cats, $id ) : boolean | Insert Article2Cats |
Метод | Описание | |
---|---|---|
_dot ( $str, $len, $dots = "..." ) : string | dot | |
_get_article_by_id ( $id ) : array | Get Article By ID. |
public add_article ( array $data ) : mixed | ||
$data | array | An array of data. |
Результат | mixed | Id on success. |
public delete_article ( $article_id ) : TRUE | ||
Результат | TRUE | on success. |
public delete_article_attachments ( $id ) |
public edit_article ( $article_id, array $data ) : boolean | ||
$data | array | An array of data. |
Результат | boolean | TRUE on success. |
public get_article_by_uri ( $uri ) : array | ||
Результат | array |
public get_articles ( ) : mixed | ||
Результат | mixed | Either int or array. |
public get_articles_by_catid ( $id, $limit, $current_row, $show_count = TRUE ) : mixed | ||
Результат | mixed |
public get_attachments ( $id ) : array | ||
Результат | array |
public get_category_relationship ( $article_id = '' ) : boolean | ||
Результат | boolean |
public get_cats_by_article ( $id ) : array | ||
Результат | array |
$this->article_model->get_highest_rated(10);
public get_highest_rated ( $number = 25 ) : array | ||
Результат | array |
public get_latest ( $number = 25 ) : array | ||
Результат | array |
public get_most_popular ( $number = 25 ) : array | ||
Результат | array |
public insert_cats ( $cats, $id ) : boolean | ||
Результат | boolean |