Drug::attributeLabels PHP 메소드

attributeLabels() 공개 메소드

public attributeLabels ( ) : array
리턴 array customized attribute labels (name=>label)
    public function attributeLabels()
    {
        return array('type_id' => 'Type', 'default_duration_id' => 'Default Duration', 'default_frequency_id' => 'Default Frequency', 'default_route_id' => 'Default Route');
    }

Usage Example

예제 #1
0
 /**
  *	@covers	Drug::attributeLabels
  */
 public function testAttributeLabels()
 {
     $expected = array('type_id' => 'Type', 'default_duration_id' => 'Default Duration', 'default_frequency_id' => 'Default Frequency', 'default_route_id' => 'Default Route');
     $this->assertEquals($expected, $this->model->attributeLabels());
 }