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
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;
10
class
File
extends
\Dcp\Family\Document
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
}
Doc\vault_filename
vault_filename($attrid, $path=false, $index=-1)
Definition:
Class.Doc.php:8176
Dcp\Family\Document
Definition:
Class.FamilyDocument.php:9
$filename
$filename
Definition:
exportAccounts.php:11
Dcp\Core\File\postStore
postStore()
Definition:
Class.FileDocument.php:13
Dcp\Core\File
Definition:
Class.FileDocument.php:10
Doc\getRawValue
getRawValue($idAttr, $def="")
Definition:
Class.Doc.php:3117
← centre documentaire
© anakeen