|
| __construct () |
| Constructor. More...
|
|
| get ($id) |
| Get properties of a knowledgerecord object. More...
|
|
| getCategories ($id, $sortfield="s.rowid", $sortorder='ASC', $limit=0, $page=0) |
| Get categories for a knowledgerecord object. More...
|
|
| index ($sortfield="t.rowid", $sortorder='ASC', $limit=100, $page=0, $category=0, $sqlfilters='') |
| List knowledgerecords. More...
|
|
| post ($request_data=null) |
| Create knowledgerecord object. More...
|
|
| put ($id, $request_data=null) |
| Update knowledgerecord. More...
|
|
| delete ($id) |
| Delete knowledgerecord. More...
|
|
| __construct ($db, $cachedir='', $refreshCache=false) |
| Constructor. More...
|
|
◆ __construct()
KnowledgeManagement::__construct |
( |
| ) |
|
◆ _cleanObjectDatas()
KnowledgeManagement::_cleanObjectDatas |
( |
|
$object | ) |
|
|
protected |
◆ _validate()
KnowledgeManagement::_validate |
( |
|
$data | ) |
|
|
private |
◆ delete()
KnowledgeManagement::delete |
( |
|
$id | ) |
|
◆ get()
KnowledgeManagement::get |
( |
|
$id | ) |
|
Get properties of a knowledgerecord object.
Return an array with knowledgerecord informations
- Parameters
-
int | $id | ID of knowledgerecord |
- Returns
- array|mixed data without useless information
@url GET knowledgerecords/{id}
- Exceptions
-
RestException | 401 Not allowed |
RestException | 404 Not found |
Definition at line 71 of file api_knowledgemanagement.class.php.
◆ getCategories()
KnowledgeManagement::getCategories |
( |
|
$id, |
|
|
|
$sortfield = "s.rowid" , |
|
|
|
$sortorder = 'ASC' , |
|
|
|
$limit = 0 , |
|
|
|
$page = 0 |
|
) |
| |
Get categories for a knowledgerecord object.
- Parameters
-
int | $id | ID of knowledgerecord object |
string | $sortfield | Sort field |
string | $sortorder | Sort order |
int | $limit | Limit for list |
int | $page | Page number |
- Returns
- mixed
@url GET /knowledgerecords/{id}/categories
Definition at line 102 of file api_knowledgemanagement.class.php.
◆ index()
KnowledgeManagement::index |
( |
|
$sortfield = "t.rowid" , |
|
|
|
$sortorder = 'ASC' , |
|
|
|
$limit = 100 , |
|
|
|
$page = 0 , |
|
|
|
$category = 0 , |
|
|
|
$sqlfilters = '' |
|
) |
| |
List knowledgerecords.
Get a list of knowledgerecords
- Parameters
-
string | $sortfield | Sort field |
string | $sortorder | Sort order |
int | $limit | Limit for list |
int | $page | Page number |
int | $category | Use this param to filter list by category |
string | $sqlfilters | Other criteria to filter answers separated by a comma. Syntax example "(t.ref:like:'SO-%') and (t.date_creation:<:'20160101')" |
- Returns
- array Array of order objects
- Exceptions
-
RestException | @url GET /knowledgerecords/ |
Definition at line 140 of file api_knowledgemanagement.class.php.
◆ post()
KnowledgeManagement::post |
( |
|
$request_data = null | ) |
|
Create knowledgerecord object.
- Parameters
-
array | $request_data | Request datas |
- Returns
- int ID of knowledgerecord
- Exceptions
-
RestException | @url POST knowledgerecords/ |
Definition at line 250 of file api_knowledgemanagement.class.php.
◆ put()
KnowledgeManagement::put |
( |
|
$id, |
|
|
|
$request_data = null |
|
) |
| |
Update knowledgerecord.
- Parameters
-
int | $id | Id of knowledgerecord to update |
array | $request_data | Datas |
- Returns
- int
- Exceptions
-
RestException | @url PUT knowledgerecords/{id} |
Definition at line 283 of file api_knowledgemanagement.class.php.
The documentation for this class was generated from the following file: