示例#1
0
文件: Product.php 项目: kingsj/core
 /**
  * Get initial field parameters
  *
  * @param array $field Field data
  *
  * @return array
  */
 protected function getFieldParams(array $field)
 {
     return parent::getFieldParams($field) + array('min' => 0);
 }
示例#2
0
 /**
  * getContainerClass 
  * 
  * @return string
  */
 protected function getContainerClass()
 {
     return parent::getContainerClass() . ' inline-subtotalRangeBegin';
 }
示例#3
0
 /**
  * Get field value from entity
  *
  * @param array $field Field
  *
  * @return mixed
  */
 protected function getFieldEntityValue(array $field)
 {
     return abs(parent::getFieldEntityValue($field));
 }