phpgw_interlink
__construct
()
Add a link
int
add_link
(string $app1, string $class1, int $id1, string $app2, string $class2, int $id2, [bool $private = true])
-
string
$app1: the first application (usually the source)
-
string
$class1: the first class
-
int
$id1: the first record id
-
string
$app2: the second application (usually the target)
-
string
$class2: the second class
-
int
$id2: the second record id
-
bool
$private: is the link private
Count the number of records linked to a record
int
count_links
(string $app, string $clss, int $id)
-
string
$app: the module to link to
-
string
$clss: the class to link to
-
int
$id: the id to link to
Delete a link
bool
delete_link
(int $link_id)
-
int
$link_id: the link to delete
List available links
array
list_links
(string $app, string $clss, int $id)
-
string
$app: the module to link to
-
string
$clss: the class to link to
-
int
$id: the id to link to