ContactLabel::attributeLabels PHP Method

attributeLabels() public method

public attributeLabels ( ) : array
return array customized attribute labels (name=>label)
    public function attributeLabels()
    {
        return array('id' => 'ID', 'name' => 'Name', 'letter_template_only' => 'Letter Template Only');
    }

Usage Example

 /**
  * @covers ContactLabel::attributeLabels
  */
 public function testAttributeLabels()
 {
     $expected = array('id' => 'ID', 'name' => 'Name', 'letter_template_only' => 'Letter Template Only');
     $this->assertEquals($expected, $this->model->attributeLabels());
 }