Method | Description | |
---|---|---|
__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 |
Method | Description | |
---|---|---|
_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. |
return | mixed | Id on success. |
public delete_article ( $article_id ) : TRUE | ||
return | TRUE | on success. |
public delete_article_attachments ( $id ) |
public edit_article ( $article_id, array $data ) : boolean | ||
$data | array | An array of data. |
return | boolean | TRUE on success. |
public get_article_by_uri ( $uri ) : array | ||
return | array |
public get_articles ( ) : mixed | ||
return | mixed | Either int or array. |
public get_articles_by_catid ( $id, $limit, $current_row, $show_count = TRUE ) : mixed | ||
return | mixed |
public get_attachments ( $id ) : array | ||
return | array |
public get_category_relationship ( $article_id = '' ) : boolean | ||
return | boolean |
public get_cats_by_article ( $id ) : array | ||
return | array |
$this->article_model->get_highest_rated(10);
public get_highest_rated ( $number = 25 ) : array | ||
return | array |
public get_latest ( $number = 25 ) : array | ||
return | array |
public get_most_popular ( $number = 25 ) : array | ||
return | array |
public insert_cats ( $cats, $id ) : boolean | ||
return | boolean |