|
| __construct (dcBlog $blog) |
|
| getLinks (array $params=[]) |
|
| getLangs (array $params=[]) |
|
| getLink (string $id) |
|
| addLink (string $title, string $href, string $desc='', string $lang='', string $xfn='') |
|
| updateLink (string $id, string $title, string $href, string $desc='', string $lang='', string $xfn='') |
|
| updateCategory (string $id, string $desc) |
|
| addCategory (string $title) |
|
| delItem (string $id) |
|
| updateOrder (string $id, string $position) |
|
| getLinksHierarchy (dcRecord $rs) |
|
◆ __construct()
◆ getLinks()
getLinks |
( |
array |
$params = [] | ) |
|
Gets the links.
- Parameters
-
array | $params | The parameters |
- Returns
- dcRecord The links.
Referenced by getLink().
◆ getLangs()
getLangs |
( |
array |
$params = [] | ) |
|
Gets the links.
- Parameters
-
array | $params | The parameters |
- Returns
- dcRecord The links.
◆ getLink()
◆ addLink()
addLink |
( |
string |
$title, |
|
|
string |
$href, |
|
|
string |
$desc = '' , |
|
|
string |
$lang = '' , |
|
|
string |
$xfn = '' |
|
) |
| |
Adds a link.
- Parameters
-
string | $title | The title |
string | $href | The href |
string | $desc | The description |
string | $lang | The language |
string | $xfn | The xfn |
- Exceptions
-
References if.
◆ updateLink()
updateLink |
( |
string |
$id, |
|
|
string |
$title, |
|
|
string |
$href, |
|
|
string |
$desc = '' , |
|
|
string |
$lang = '' , |
|
|
string |
$xfn = '' |
|
) |
| |
Update a link
- Parameters
-
string | $id | The identifier |
string | $title | The title |
string | $href | The href |
string | $desc | The description |
string | $lang | The language |
string | $xfn | The xfn |
- Exceptions
-
◆ updateCategory()
updateCategory |
( |
string |
$id, |
|
|
string |
$desc |
|
) |
| |
Update a category
- Parameters
-
string | $id | The identifier |
string | $desc | The description |
- Exceptions
-
◆ addCategory()
addCategory |
( |
string |
$title | ) |
|
Adds a category.
- Parameters
-
- Exceptions
-
- Returns
- int The category ID
◆ delItem()
◆ updateOrder()
updateOrder |
( |
string |
$id, |
|
|
string |
$position |
|
) |
| |
Update a link order
- Parameters
-
string | $id | The identifier |
string | $position | The position |
◆ getLinksHierarchy()
Gets the links hierarchy.
- Parameters
-
- Returns
- array The links hierarchy.
References dcRecord\rows().
◆ LINK_TABLE_NAME
const LINK_TABLE_NAME = 'link' |
The documentation for this class was generated from the following file: