Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
Class.FileDocument.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 /**
7  * document to attach file
8  */
9 namespace Dcp\Core;
11 {
12 
13  function postStore()
14  {
15  $filename = $this->vault_filename("FI_FILE");
16  /* to not view extension file
17  $pos = strrpos($filename , ".");
18  if ($pos !== false) {
19  $filename=substr($filename,0,$pos);
20  }
21  */
22  if ($this->getRawValue("FI_TITLEW") == "") $this->SetValue("FI_TITLE", $filename);
23  else $this->SetValue("FI_TITLE", $this->getRawValue("FI_TITLEW"));
24  }
25 }
vault_filename($attrid, $path=false, $index=-1)
Definition: Class.Doc.php:8176
$filename
getRawValue($idAttr, $def="")
Definition: Class.Doc.php:3117
← centre documentaire © anakeen