Example #1
0
 /**
  * Get common attributes
  *
  * @return array
  */
 protected function getCommonAttributes()
 {
     $list = parent::getCommonAttributes();
     $list['value'] = 1;
     return $list;
 }
Example #2
0
 /**
  * getWrapperClass
  *
  * @return array
  */
 public function getWrapperClass()
 {
     $class = parent::getWrapperClass();
     $class .= $this->getValue() ? ' checked' : '';
     return $class;
 }