Method | Description | |
---|---|---|
behaviors ( ) | ||
checkMimeType ( string $file ) : boolean | function to check if a file is the right type to become part of a collection. | |
defaultScope ( ) | set the ordering based on the name of the collections. | |
getDownloadURL ( ) : string | return the download url for the compressed file of this collection. | |
getZipFile ( ) : ProtectedFile | get a compressed zip file containing all the files in the collection. | |
model ( $className = __CLASS__ ) : the | Returns the static model of the specified AR class. | |
relations ( ) : array | ||
removeFileById ( $file_id ) : boolean | removes a protected file associated with the collection. | |
rules ( ) : array | ||
tableName ( ) : string | ||
updateFiles ( int[] $file_ids ) | update the files for this collection. |
Method | Description | |
---|---|---|
cleanCompressedFile ( ) | removes the compressed file association for this collection. Should be called when the files for it are changed so that a new compressed file is created when needed. |
public static checkMimeType ( string $file ) : boolean | ||
$file | string | |
return | boolean |
protected cleanCompressedFile ( ) |
public getDownloadURL ( ) : string | ||
return | string | URL |
public getZipFile ( ) : ProtectedFile | ||
return | ProtectedFile |
public static model ( $className = __CLASS__ ) : the | ||
return | the | static model class |
public removeFileById ( $file_id ) : boolean | ||
$file_id | ||
return | boolean |
public updateFiles ( int[] $file_ids ) | ||
$file_ids | int[] | - array of ProtectedFile ids to assign to the collection |