/** * Validates a parentid. * Checks if the parent exists. * * @param mixed $value - The value to validate * @param mixed $error - The var to assign an error to * @return mixed | bool - The filtered value or boolean false */ protected function validateParent($value, &$error) { $parent = new vBCms_Item_Content($value); if (!$parent->isValid()) { return false; } $this->section = $parent->getSectionId(); return $value; }