PHP 클래스 OphCoTherapyapplication_FileCollection

A File Collection points to one or more PDF that can be attached to a therapy application
상속: extends BaseActiveRecordVersioned
파일 보기 프로젝트 열기: openeyes/openeyes 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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.

메소드 상세

behaviors() 공개 메소드

public behaviors ( )

checkMimeType() 공개 정적인 메소드

function to check if a file is the right type to become part of a collection.
public static checkMimeType ( string $file ) : boolean
$file string
리턴 boolean

cleanCompressedFile() 보호된 메소드

will also call the delete function on the protected file itself to remove orphaned files
protected cleanCompressedFile ( )

defaultScope() 공개 메소드

(non-PHPdoc)
또한 보기: CActiveRecord::defaultScope()
public defaultScope ( )

getDownloadURL() 공개 메소드

return the download url for the compressed file of this collection.
public getDownloadURL ( ) : string
리턴 string URL

getZipFile() 공개 메소드

get a compressed zip file containing all the files in the collection.
public getZipFile ( ) : ProtectedFile
리턴 ProtectedFile

model() 공개 정적인 메소드

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : the
리턴 the static model class

relations() 공개 메소드

public relations ( ) : array
리턴 array relational rules.

removeFileById() 공개 메소드

removes a protected file associated with the collection.
public removeFileById ( $file_id ) : boolean
$file_id
리턴 boolean

rules() 공개 메소드

public rules ( ) : array
리턴 array validation rules for model attributes.

tableName() 공개 메소드

public tableName ( ) : string
리턴 string the associated database table name

updateFiles() 공개 메소드

update the files for this collection.
public updateFiles ( int[] $file_ids )
$file_ids int[] - array of ProtectedFile ids to assign to the collection