setAlias('MimeType'); $this->joinTo('mime_types', 'id'); $this->matchField('mimetypes'); } public function getInputRequirements() { // ideally MIME_TYPES // but we must rework the mime_types table to be prettier! return array('value'=>array('type'=>FieldInputType::TEXT)); } public function is_valid() { return DefaultOpCollection::validateParent($this, DefaultOpCollection::$is); } } ?>