Ejemplo n.º 1
0
 /**
  * @param MPCEElement $a
  * @param MPCEElement $b
  * @return int
  */
 public function positionCmp(MPCEElement $a, MPCEElement $b)
 {
     $aPosition = $a->getPosition();
     $bPosition = $b->getPosition();
     if ($aPosition == $bPosition) {
         return 0;
     }
     return $aPosition < $bPosition ? -1 : 1;
 }
Ejemplo n.º 2
0
 public function setIcon($icon)
 {
     parent::icon($icon, self::ICON_DIR);
 }