Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
modcard.php File Reference

Go to the source code of this file.

Namespaces

 FDL
 

Functions

 modcard (Action &$action, &$ndocid, &$info=array())
 
 setPostVars (Doc &$doc, &$info=array())
 
 insert_file (Doc &$doc, $attrid, $strict=false)
 
 needRefreshRn (Doc &$doc)
 
 searchmorerecent ($rt, $file)
 
 specialmodcard (Action &$action, $usefor)
 
 check_max_input_vars (Action &$action, $inputNameValue= '__check_max_input_vars__')
 

Function Documentation

check_max_input_vars ( Action $action,
  $inputNameValue = '__check_max_input_vars__' 
)

Check for PHP's max_input_vars corruption.

The check is only performed if the action is executed with the variable checkMaxInputVars=yes

Parameters
Action$actionThe action that received the POSTed data
string$inputNameValueName and value of last input to detect corruption (default is 'detect_max_input_vars')
Returns
bool

Definition at line 678 of file modcard.php.

+ Here is the call graph for this function:

insert_file ( Doc $doc,
  $attrid,
  $strict = false 
)

insert file in VAULT from HTTP upload

Parameters
Doc$doc
$attrid
bool$strict
Returns
array|string
Exceptions
\Dcp\Core\Exception

In our case, an empty input field is not an error but it means that the input field value has not been changed.

So, UPLOAD_ERR_NO_FILE is not a real error, but a special case in our handling of uploaded files.

Other codes are "real" errors and must be reported.

Handle successful non-empty input field uploads

Definition at line 365 of file modcard.php.

+ Here is the call graph for this function:

modcard ( Action $action,
$ndocid,
$info = array() 
)

Modify a document

Parameters
Action$action
int$ndocid
array$info
Returns
string

Definition at line 30 of file modcard.php.

+ Here is the call graph for this function:

needRefreshRn ( Doc $doc)

Definition at line 572 of file modcard.php.

+ Here is the call graph for this function:

searchmorerecent (   $rt,
  $file 
)

Definition at line 583 of file modcard.php.

setPostVars ( Doc $doc,
$info = array() 
)

Definition at line 259 of file modcard.php.

+ Here is the call graph for this function:

specialmodcard ( Action $action,
  $usefor 
)

Definition at line 599 of file modcard.php.

+ Here is the call graph for this function:

← centre documentaire © anakeen