示例#1
0
 /**
  * Correct columns data (leave only data for the specific attribute type)
  *
  * @param array $rows Data row(s)
  *
  * @return array
  */
 protected function assembleColumnsData(array $rows)
 {
     $data = parent::assembleColumnsData($rows);
     if (!isset($data['type']) || $this->attributeType != $data['type']) {
         $data = array();
     }
     return $data;
 }