function __construct(array $options = array(), array $msg = array())
 {
     $this->msg = array('not_allowed_value' => wfMsg("wikia-validator-not-allowed-value"));
     $this->options = array('allowed' => array());
     parent::__construct($options, $msg);
 }
 /**
  * Helper method for validation external URL
  *
  * @param WikiaValidator $validator an instance of WikiaValidator ie. WikiaUrlValidator
  *
  * @return bool
  */
 public function isValidUrl(WikiaValidator $validator)
 {
     $externalUrl = $this->getData('articleTitleOrExternalUrl');
     $valid = false;
     if (!empty($externalUrl) && $validator->isValid($externalUrl) || empty($externalUrl)) {
         $valid = true;
     }
     return $valid;
 }
 function __construct(array $options = array(), array $msg = array())
 {
     $this->msg = array('no_element' => wfMsg("wikia-validator-array-no-element"));
     $this->options = array('validators' => array());
     parent::__construct($options, $msg);
 }