Go to the source code of this file.
Namespaces | |
| FDL | |
Functions | |
| getFirstDir ($dbaccess) | |
| getChildDir ($dbaccess, $userid, $dirid, $notfldsearch=false, $restype="LIST") | |
| isSimpleFilter ($sqlfilters) | |
| getSqlSearchDoc ($dbaccess, $dirid, $fromid, $sqlfilters=array(), $distinct=false, $latest=true, $trash="", $simplesearch=false, $folderRecursiveLevel=2, $join= '', $only="") | |
| getChildDocError ($dbaccess, $dirid) | |
| getChildDoc ($dbaccess, $dirid, $start="0", $slice="ALL", $sqlfilters=array(), $userid=1, $qtype="LIST", $fromid="", $distinct=false, $orderby="title", $latest=true, $trash="", &$debug=null, $folderRecursiveLevel=2, $join= '',\SearchDoc &$searchDoc=null) | |
| internalGetDocCollection ($dbaccess, $dirid, $start="0", $slice="ALL", $sqlfilters=array(), $userid=1, $qtype="LIST", $fromid="", $distinct=false, $orderby="title", $latest=true, $trash="", &$debug=null, $folderRecursiveLevel=2, $join= '',\SearchDoc &$searchDoc=null) | |
| getFldDoc ($dbaccess, $dirid, $sqlfilters=array(), $limit=100, $reallylimit=true) | |
| sortbytitle ($td1, $td2) | |
| getMSearchDoc ($dbaccess, $dirid, $start="0", $slice="ALL", $sqlfilters=array(), $userid=1, $qtype="LIST", $fromid="", $distinct=false, $orderby="title", $latest=true) | |
| getKindDoc ($dbaccess, $famname, $aid, $kid, $name="", $sqlfilter=array(), $limit=100, $qtype="TABLE", $userid=0) | |
| sqlval2array ($sqlvalue) | |
| getChildDirId ($dbaccess, $dirid) | |
| getRChildDirId ($dbaccess, $dirid, $rchilds=array(), $level=0, $levelmax=2) | |
| isInDir ($dbaccess, $dirid, $docid) | |
| hasChildFld ($dbaccess, $dirid, $issearch=false) | |
| GetClassesDoc ($dbaccess, $userid, $classid=0, $qtype="LIST", $extraFilters=array()) | |
| getNonSystemFamilies ($dbaccess, $userid, $qtype="TABLE") | |
| getSystemFamilies ($dbaccess, $userid, $qtype="TABLE") | |
| cmpfamtitle ($a, $b) | |
| GetProfileDoc ($dbaccess, $docid, $defProfFamId="") | |
| getFamilyCreationIds ($dbaccess, $uid, $tfid=array()) | |
| getDocsFromIds ($dbaccess, $ids, $userid=0) | |
| getLatestDocsFromIds ($dbaccess, $ids, $userid=0) | |
| getVisibleDocsFromIds ($dbaccess, $ids, $userid) | |
| familyNeedDocread ($dbaccess, $id) | |
| cmpfamtitle | ( | $a, | |
| $b | |||
| ) |
| familyNeedDocread | ( | $dbaccess, | |
| $id | |||
| ) |
return true for optimization select
| string | $dbaccess | database specification |
| int | $id | identifier of the document family |
Definition at line 1082 of file Lib.Dir.php.
Here is the call graph for this function:| getChildDir | ( | $dbaccess, | |
| $userid, | |||
| $dirid, | |||
$notfldsearch = false, |
|||
$restype = "LIST" |
|||
| ) |
| getChildDirId | ( | $dbaccess, | |
| $dirid | |||
| ) |
query to find child directories (no recursive - only in the specified folder)
| string | $dbaccess | database specification |
| int | $dirid | the id of folder where search subfolders |
Definition at line 797 of file Lib.Dir.php.
Here is the call graph for this function:| getChildDoc | ( | $dbaccess, | |
| $dirid, | |||
$start = "0", |
|||
$slice = "ALL", |
|||
$sqlfilters = array(), |
|||
$userid = 1, |
|||
$qtype = "LIST", |
|||
$fromid = "", |
|||
$distinct = false, |
|||
$orderby = "title", |
|||
$latest = true, |
|||
$trash = "", |
|||
| & | $debug = null, |
||
$folderRecursiveLevel = 2, |
|||
$join = '', |
|||
| \SearchDoc & | $searchDoc = null |
||
| ) |
return array of documents
| string | $dbaccess | database specification |
| array | $dirid | the array of id or single id of folder where search document |
| string | $start | the start index |
| string | $slice | the maximum number of returned document |
| array | $sqlfilters | array of sql filter |
| int | $userid | the current user id |
| string | $qtype | LIST|TABLE the kind of return : list of object or list or values array |
| int | string | $fromid | identifier of family document |
| bool | $distinct | if true all revision of the document are returned else only latest |
| string | $orderby | field order |
| bool | $latest | if true only latest else all revision |
| string | $trash | (no|only|also) search in trash or not |
| null | $debug | |
| int | $folderRecursiveLevel | |
| string | $join | |
| \SearchDoc | $searchDoc | the SearchDoc object when getChildDoc is used by a SearchDoc object |
Definition at line 400 of file Lib.Dir.php.
Here is the call graph for this function:| getChildDocError | ( | $dbaccess, | |
| $dirid | |||
| ) |
get possibles errors before request of getChildDoc
| string | $dbaccess | database specification |
| array | int | $dirid | the array of id or single id of folder where search document |
Definition at line 319 of file Lib.Dir.php.
Here is the call graph for this function:| GetClassesDoc | ( | $dbaccess, | |
| $userid, | |||
$classid = 0, |
|||
$qtype = "LIST", |
|||
$extraFilters = array() |
|||
| ) |
return families with the same usefor
| string | $dbaccess | database specification |
| int | $userid | identifier of the user |
| int | $classid | the reference family to find by usefor (if 0 all families) can be an array of id |
| string | $qtype | [TABLE|LIST] use TABLE if you can because LIST cost too many memory |
Definition at line 906 of file Lib.Dir.php.
Here is the call graph for this function:| getDocsFromIds | ( | $dbaccess, | |
| $ids, | |||
$userid = 0 |
|||
| ) |
get array of document values from array od document id
| string | $dbaccess | database specification |
Definition at line 1034 of file Lib.Dir.php.
Here is the call graph for this function:| getFamilyCreationIds | ( | $dbaccess, | |
| $uid, | |||
$tfid = array() |
|||
| ) |
get array of family id that the user can create interactivaly
| string | $dbaccess | database specification |
| int | $uid | user identifier |
| array | $tfid | restriction of this set of family id |
Definition at line 1009 of file Lib.Dir.php.
Here is the call graph for this function:| getFirstDir | ( | $dbaccess | ) |
Definition at line 22 of file Lib.Dir.php.
| getFldDoc | ( | $dbaccess, | |
| $dirid, | |||
$sqlfilters = array(), |
|||
$limit = 100, |
|||
$reallylimit = true |
|||
| ) |
optimization for getChildDoc
| int | $limit | if -1 no limit |
| bool | $reallylimit | if false don't return false if limit is reached |
Definition at line 664 of file Lib.Dir.php.
Here is the call graph for this function:| getKindDoc | ( | $dbaccess, | |
| $famname, | |||
| $aid, | |||
| $kid, | |||
$name = "", |
|||
$sqlfilter = array(), |
|||
$limit = 100, |
|||
$qtype = "TABLE", |
|||
$userid = 0 |
|||
| ) |
return array of documents
based on {
| string | $dbaccess | database specification |
| string | $famname | internal name of family document |
| string | $aid | the attribute identifier |
| string | $kid | the key for enum value to search |
| string | $name | additionnal filter on the title |
| array | $sqlfilters | array of sql filter |
| int | $limit | max document returned |
| string | $qtype | LIST|TABLE the kind of return : list of object or list or values array |
| int | $userid | the current user id |
Definition at line 740 of file Lib.Dir.php.
Here is the call graph for this function:| getLatestDocsFromIds | ( | $dbaccess, | |
| $ids, | |||
$userid = 0 |
|||
| ) |
get array of document values from array od document id
| string | $dbaccess | database specification |
Definition at line 1047 of file Lib.Dir.php.
Here is the call graph for this function:| getMSearchDoc | ( | $dbaccess, | |
| $dirid, | |||
$start = "0", |
|||
$slice = "ALL", |
|||
$sqlfilters = array(), |
|||
$userid = 1, |
|||
$qtype = "LIST", |
|||
$fromid = "", |
|||
$distinct = false, |
|||
$orderby = "title", |
|||
$latest = true |
|||
| ) |
optimization for getChildDoc in case of grouped searches not used
Definition at line 711 of file Lib.Dir.php.
Here is the call graph for this function:| getNonSystemFamilies | ( | $dbaccess, | |
| $userid, | |||
$qtype = "TABLE" |
|||
| ) |
Return non-system families
| string | $dbaccess | database specification |
| int | $userid | identifier of the user |
| string | $qtype | result format "TABLE" | "LIST" (Avoid using "LIST" as it's memory hungry)(default is "TABLE") |
Definition at line 952 of file Lib.Dir.php.
Here is the call graph for this function:| GetProfileDoc | ( | $dbaccess, | |
| $docid, | |||
$defProfFamId = "" |
|||
| ) |
return array of possible profil for profile type
| string | $dbaccess | database specification |
| int | $famid | the id of family document |
Definition at line 984 of file Lib.Dir.php.
Here is the call graph for this function:| getRChildDirId | ( | $dbaccess, | |
| $dirid, | |||
$rchilds = array(), |
|||
$level = 0, |
|||
$levelmax = 2 |
|||
| ) |
return array of subfolder id until sublevel 2 (RECURSIVE)
| string | $dbaccess | database specification |
| int | $dirid | the id of folder where search subfolders |
| array | $rchilds | use for recursion (dont't set anything) |
| int | $level | use for recursion (dont't set anything) |
| int | $levelmax | max recursion level (default 2) |
Definition at line 822 of file Lib.Dir.php.
Here is the call graph for this function:| getSqlSearchDoc | ( | $dbaccess, | |
| $dirid, | |||
| $fromid, | |||
$sqlfilters = array(), |
|||
$distinct = false, |
|||
$latest = true, |
|||
$trash = "", |
|||
$simplesearch = false, |
|||
$folderRecursiveLevel = 2, |
|||
$join = '', |
|||
$only = "" |
|||
| ) |
compose query to serach document
| string | $dbaccess | database specification |
| array | $dirid | the array of id or single id of folder where search document (0 => in all DB) |
| string | $fromid | for a specific familly (0 => all familly) (<0 strict familly) |
| array | $sqlfilters | array of sql filter |
| bool | $distinct | |
| bool | $latest | set false if search in all revised doc |
| string | $trash | (no|only|also) search in trash or not |
| bool | $simplesearch | set false if search is about specific attributes |
| int | $folderRecursiveLevel | |
| string | $join | defined a join table like "id = dochisto(id)" |
| string | $only | set "only" to have only family (not descandent); |
Definition at line 108 of file Lib.Dir.php.
Here is the call graph for this function:| getSystemFamilies | ( | $dbaccess, | |
| $userid, | |||
$qtype = "TABLE" |
|||
| ) |
Return system families
| string | $dbaccess | database specification |
| int | $userid | identifier of the user |
| string | $qtype | result format "TABLE" | "LIST" (Avoid using "LIST" as it's memory hungry)(default is "TABLE") |
Definition at line 966 of file Lib.Dir.php.
Here is the call graph for this function:| getVisibleDocsFromIds | ( | $dbaccess, | |
| $ids, | |||
| $userid | |||
| ) |
get array of document values from array od document id
| string | $dbaccess | database specification |
| string | $ids | array of init id -only initid- |
| string | $userid | the user where search visibility |
Definition at line 1062 of file Lib.Dir.php.
| hasChildFld | ( | $dbaccess, | |
| $dirid, | |||
$issearch = false |
|||
| ) |
return true if dirid has one or more child dir
| string | $dbaccess | database specification |
| int | $dirid | folder id |
Definition at line 862 of file Lib.Dir.php.
| internalGetDocCollection | ( | $dbaccess, | |
| $dirid, | |||
$start = "0", |
|||
$slice = "ALL", |
|||
$sqlfilters = array(), |
|||
$userid = 1, |
|||
$qtype = "LIST", |
|||
$fromid = "", |
|||
$distinct = false, |
|||
$orderby = "title", |
|||
$latest = true, |
|||
$trash = "", |
|||
| & | $debug = null, |
||
$folderRecursiveLevel = 2, |
|||
$join = '', |
|||
| \SearchDoc & | $searchDoc = null |
||
| ) |
system only - used by core return array of documents
| string | $dbaccess | database specification |
| array | $dirid | the array of id or single id of folder where search document |
| string | $start | the start index |
| string | $slice | the maximum number of returned document |
| array | $sqlfilters | array of sql filter |
| int | $userid | the current user id |
| string | $qtype | LIST|TABLE the kind of return : list of object or list or values array |
| int | string | $fromid | identifier of family document |
| bool | $distinct | if false all revision of the document are returned else only latest |
| string | $orderby | field order |
| bool | $latest | if true only latest else all revision |
| string | $trash | (no|only|also) search in trash or not |
| bool | $debug | |
| int | $folderRecursiveLevel | |
| string | $join | |
| \SearchDoc | $searchDoc | the SearchDoc object when getChildDoc is used by a SearchDoc object |
Definition at line 428 of file Lib.Dir.php.
| isInDir | ( | $dbaccess, | |
| $dirid, | |||
| $docid | |||
| ) |
Definition at line 846 of file Lib.Dir.php.
| isSimpleFilter | ( | $sqlfilters | ) |
Definition at line 68 of file Lib.Dir.php.
| sortbytitle | ( | $td1, | |
| $td2 | |||
| ) |
Definition at line 703 of file Lib.Dir.php.
| sqlval2array | ( | $sqlvalue | ) |
Definition at line 778 of file Lib.Dir.php.