PHP Class nemmo\attachments\Module

Inheritance: extends yii\base\Module
显示文件 Open project: nemmo/yii2-attachments Class Usage Examples

Public Properties

Property Type Description
$controllerNamespace
$rules
$storePath
$tableName
$tempPath

Public Methods

Method Description
attachFile ( $filePath, $owner ) : boolean | File
detachFile ( $id )
getFilesDirPath ( $fileHash ) : string
getShortClass ( $obj )
getStorePath ( )
getSubDirs ( $fileHash, $depth = 3 )
getTempPath ( )
getUserDirPath ( )
init ( )
registerTranslations ( )
t ( $category, $message, $params = [], $language = null )

Method Details

attachFile() public method

public attachFile ( $filePath, $owner ) : boolean | File
$filePath string
$owner
return boolean | nemmo\attachments\models\File

detachFile() public method

public detachFile ( $id )

getFilesDirPath() public method

public getFilesDirPath ( $fileHash ) : string
$fileHash
return string

getShortClass() public method

public getShortClass ( $obj )

getStorePath() public method

public getStorePath ( )

getSubDirs() public method

public getSubDirs ( $fileHash, $depth = 3 )

getTempPath() public method

public getTempPath ( )

getUserDirPath() public method

public getUserDirPath ( )

init() public method

public init ( )

registerTranslations() public method

t() public static method

public static t ( $category, $message, $params = [], $language = null )

Property Details

$controllerNamespace public_oe property

public $controllerNamespace

$rules public_oe property

public $rules

$storePath public_oe property

public $storePath

$tableName public_oe property

public $tableName

$tempPath public_oe property

public $tempPath