예제 #1
0
 /**
  * getCommonAttributes
  *
  * @return array
  */
 protected function getCommonAttributes()
 {
     $list = parent::getCommonAttributes();
     $list['value'] = '1';
     return $list;
 }
예제 #2
0
파일: Simple.php 프로젝트: kingsj/core
 /**
  * getCommonAttributes
  *
  * @return array
  */
 protected function getCommonAttributes()
 {
     $list = parent::getCommonAttributes();
     unset($list['value']);
     return $list;
 }
예제 #3
0
 /**
  * Determines if checkbox is checked
  *
  * @return boolean
  */
 protected function isChecked()
 {
     return parent::isChecked() || $this->callFormMethod('getShipAsBillFlag');
 }
예제 #4
0
파일: OnOff.php 프로젝트: kirkbauer2/kirkxc
 /**
  * getCommonAttributes
  *
  * @return array
  */
 protected function getCommonAttributes()
 {
     $list = parent::getCommonAttributes();
     $list['value'] = '1';
     if ($this->isDisabled()) {
         $list['disabled'] = 'disabled';
     }
     return $list;
 }