Drug::attributeLabels PHP Method

attributeLabels() public method

public attributeLabels ( ) : array
return 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

Beispiel #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());
 }