Sha256: dc51444bd1ea4b4e08539b2ea9e719deaf51fe521d2903740ab388fad3292832

Contents?: true

Size: 817 Bytes

Versions: 11

Compression:

Stored size: 817 Bytes

Contents

<?php

class AbcFile extends File {
	
	private static $allowed_extensions = array(
		'','ace','arc','arj','asf','au','avi','bmp','bz2','cab','cda','css','csv','dmg','doc','docx',
		'flv','f4v','gif','gpx','gz','hqx','htm','html','ico','jar','jpeg','jpg','js','kml', 'm4a','m4v',
		'mid','midi','mkv','mov','mp3','mp4','mpa','mpeg','mpg','ogg','ogv','pages','pcx','pdf','pkg',
		'png','pps','ppt','pptx','ra','ram','rm','rtf','sit','sitx','swf','tar','tgz','tif','tiff',
		'txt','wav','webm','webmv','wma','wmv','xhtml','xls','xlsx','xml','zip','zipx',
	);
	
	public static $has_many = array(
		"Attachments"	=> "PageFileAttachment"
	);

	public function getAddFileMimeType(){
		$return = explode('-',self::getFileType());

		return $return[0];
	}

	public function getAddFileFileSize(){
		return self::getSize();
	}
}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bonethug-0.0.17 skel/project_types/silverstripe3/public/abc/code/DO/AbcFile.php
bonethug-0.0.16 skel/project_types/silverstripe3/public/abc/code/DO/AbcFile.php
bonethug-0.0.15 skel/project_types/silverstripe3/public/abc/code/DO/AbcFile.php
bonethug-0.0.14 skel/project_types/silverstripe3/public/abc/code/DO/AbcFile.php
bonethug-0.0.13 skel/project_types/silverstripe3/public/abc/code/DO/AbcFile.php
bonethug-0.0.12 skel/project_types/silverstripe3/public/abc/code/DO/AbcFile.php
bonethug-0.0.11 skel/project_types/silverstripe3/public/abc/code/DO/AbcFile.php
bonethug-0.0.10 skel/project_types/silverstripe3/public/abc/code/DO/AbcFile.php
bonethug-0.0.7 skel/project_types/silverstripe3/public/abc/code/DO/AbcFile.php
bonethug-0.0.6 skel/project_types/silverstripe3/public/abc/code/DO/AbcFile.php
bonethug-0.0.5 skel/project_types/silverstripe3/public/abc/code/DO/AbcFile.php