예제 #1
0
 /**
  * @return Webforge\Types\Type
  */
 public function getKeyType($key)
 {
     return $this->meta->getFieldType($key);
 }
예제 #2
0
 /**
  * @depends testConstruct
  */
 public function testGetFieldTypeThrowsFieldNotDefinedException_WithFieldname(SetMeta $meta)
 {
     $e = $this->assertException('Psc\\Data\\FieldNotDefinedException', function () use($meta) {
         $meta->getFieldType(array('ich', 'bin', 'nicht', 'da'));
     });
     $this->assertEquals(array('ich', 'bin', 'nicht', 'da'), $e->field);
 }
예제 #3
0
파일: Set.php 프로젝트: pscheit/psc-cms
 public function getFieldType($field)
 {
     return $this->meta->getFieldType($field);
 }