コード例 #1
0
 /**
  * If the criteria evaluate true, the field should hide.
  * The field will be hidden with CSS on page load, before the script loads.
  * @param  string $master The name of the master field
  * @return DisplayLogicCriteria
  */
 public function hideIf($master)
 {
     $class = "display-logic display-logic-hide";
     $this->owner->addExtraClass($class);
     if ($this->owner->hasMethod('addHolderClass')) {
         $this->owner->addHolderClass($class);
     }
     return $this->displayLogicCriteria = DisplayLogicCriteria::create($this->owner, $master);
 }
コード例 #2
0
 /**
  * Creates a nested {@link DisplayLogicCriteria}
  * @return DisplayLogicCriteria
  */
 public function group()
 {
     return DisplayLogicCriteria::create($this->slave, $this->master, $this);
 }