Private/Polyfony/Uploader.php
public function limitTypes($allowed) {
		// if allowed is an array
		if(is_array($allowed)) {
			// push the whole table
			$this->Limits->Types = $allowed;
		}
		// allowed is a string
		else {
			// push it
			$this->Limits->Types[] = $allowed;
		}
		// return self
		return($this);
	}
public function limitTypes($allowed) {
		// if allowed is an array
		if(is_array($allowed)) {
			// push the whole table
			$this->Limits->Types = $allowed;
		}
		// allowed is a string
		else {
			// push it
			$this->Limits->Types[] = $allowed;
		}
		// return self
		return($this);
	}
public function limitTypes ( $ allowed ) { // if allowed is an array if ( is_array ( $ allowed ) ) { // push the whole table $ this -> Limits -> Types = $ allowed ; } // allowed is a string else { // push it $ this -> Limits -> Types [ ] = $ allowed ; } // return self return ( $ this ) ; }
limit types to array or mimetypes
limit types to array or mimetypes