isFull(); case 'new': return $moon->isNew(); case 'waxing': return $moon->isWaxing(); case 'waning': return $moon->isWaning(); default: return false; } } public function getValueControlType() { return self::CONTROL_TYPE_SELECT; } public function getValueControlTemplate() { return array( 'options' => array( self::PHASE_FULL => pht('is full'), self::PHASE_NEW => pht('is new'), self::PHASE_WAXING => pht('is waxing'), self::PHASE_WANING => pht('is waning'), ), ); } public function getRuleOrder() { return 1000; } }