/**
  * @public
  * @brief Constructor.
  * @param $name string - A name of this property.
  */
 function XCube_AbstractProperty($name)
 {
     parent::XCube_PropertyInterface($name);
     $this->mName = $name;
 }
 /**
  * @param XCube_PropertyInterface $property
  * @param array $vars
  * @return bool
  */
 public function isValid(XCube_PropertyInterface $property, $vars)
 {
     if ($property->isNull()) {
         return true;
     } else {
         return mb_strlen($property->toString(), 'UTF-8') <= $vars['mb_maxlength'];
     }
 }