Core
3.2
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
CheckCfldId.php
Go to the documentation of this file.
1
<?php
2
/*
3
* @author Anakeen
4
* @package FDL
5
*/
6
7
class
CheckCfldid
extends
CheckData
8
{
9
protected
$folderName
;
10
/**
11
* @var Doc
12
*/
13
protected
$doc
;
14
15
protected
$authorizedKeys
= array(
16
"attributes"
17
);
18
/**
19
* @param array $data
20
* @param Doc $doc
21
* @return CheckCfldid
22
*/
23
function
check
(array
$data
, &
$doc
= null)
24
{
25
26
$this->folderName = $data[1];
27
$this->doc =
$doc
;
28
$this->
checkSearch
();
29
return
$this;
30
}
31
/**
32
* check id it is a search
33
* @return void
34
*/
35
protected
function
checkSearch
()
36
{
37
if
($this->folderName) {
38
$d
= new_doc(
''
, $this->folderName);
39
if
(!
$d
->isAlive()) {
40
$this->
addError
(
ErrorCode::getError
(
'CFLD0001'
, $this->folderName, $this->doc->name));
41
} elseif (!is_a(
$d
,
"DocSearch"
)) {
42
$this->
addError
(
ErrorCode::getError
(
'CFLD0002'
, $this->folderName, $this->doc->name));
43
}
44
}
45
}
46
}
CheckCfldid\$folderName
$folderName
Definition:
CheckCfldId.php:9
CheckData
Definition:
CheckData.php:7
ErrorCode\getError
static getError($code, $args=null)
Definition:
ErrorCode.php:27
$d
$d
Definition:
dav.php:77
CheckCfldid\checkSearch
checkSearch()
Definition:
CheckCfldId.php:35
CheckCfldid\$authorizedKeys
$authorizedKeys
Definition:
CheckCfldId.php:15
CheckCfldid
Definition:
CheckCfldId.php:7
CheckCfldid\check
check(array $data, &$doc=null)
Definition:
CheckCfldId.php:23
CheckData\addError
addError($msg)
Definition:
CheckData.php:29
CheckCfldid\$doc
$doc
Definition:
CheckCfldId.php:13
$data
$data
Definition:
fdl_sendmail.php:40
← centre documentaire
© anakeen