/**
  * getError
  * @desc returns the error container's name
  * @return string
  */
 public function getError()
 {
     if ($this->error instanceof Google_Container) {
         return $this->error->getErrorContainer();
     } else {
         return '';
     }
 }
Пример #2
0
 /**
  * removeAll
  * @desc Removes all error blocks from a specified container. If the
  * specified container does not exist, this will throw an error.<br/>
  * container - The DOM element holding the error strings to remove. If the
  * container cannot be found, the function will throw a JavaScript error.
  *
  * @param Google_Container $container
  * @return void
  */
 public function removeAll(Google_Container $container)
 {
     $this->numOfArg = 1;
     if (!$container instanceof Google_Container) {
         throw new InvalidArgumentException("expecting a string");
     }
     $signature[] = $container->getErrorContainer();
     $this->signature = array();
     $this->signature = $signature;
 }