Check if the given class is a valid MenuItem class.

@param string $className

@return boolean
768856
protected function isValidMenuItemClass($className)
    {
        if (!isset($this->checkedClasses[$className]))
        {
            $this->checkedClasses[$className] = $this->hasParentClass($className, 'C33s\\MenuBundle\\Item\\MenuItem');
        }

        return $this->checkedClasses[$className];
    }
39276
private function isValidObjectClass($className)
    {
        //====================================================================//
        // Safety Check => Object Type is String
        if (!is_string($className)) {
            return "Object Type is Not a String";
        }
        //====================================================================//
        // Safety Check => Class Exists
        if (!class_exists($className)) {
            return "Object Class Not Found";
        }
        //====================================================================//
        // Safety Check => Class Extends
        if (!is_subclass_of($className, AbstractObject::class)) {
            return "Object Class MUST extends ".AbstractObject::class;
        }

        return true;
    }
432732
private function checkDoNotHaveRequiredParametersOnCreate(string $className): bool
    {
        try {
            $reflection  = new ReflectionClass($className);
            if ($reflection->isInstantiable() === false) {
                throw new InvalidSettingsClassException($className);
            }
            if (($constructor = $reflection->getConstructor()) !== null) {
                foreach ($constructor->getParameters() as $parameter) {
                    if ($parameter->isOptional() === false && $parameter->isDefaultValueAvailable() === false) {
                        // there is no default constructor
                        throw new InvalidSettingsClassException($className);
                    }
                }
            }
        } catch (ReflectionException $exception) {
            throw new InvalidSettingsClassException($className, 0, $exception);
        }

        return true;
    }
938535
public function hasClass($className)
    {
        if(strlen($className) < 1)
        {
            throw new HTMLTagException("Class name is empty");
        }

        if($this->hasAttribute("class"))
        {
            $classes = $this->getClasses();

            foreach(explode(" ",$classes) as $class) {
                if(strtolower($class) == strtolower($className)) {
                    return true;    // We found it.
                }
            }

        }

        return false;
    }
969143
public function hasClass($className)
    {
        if ($this->hasAttribute('class')) {
            return in_array($className, preg_split('/\s+/', $this->getAttribute('class')));
        }

        return false;
    }
1011232
protected static function getClassName($className) {
		if (class_exists($className)) {
			while (class_exists('ux_' . $className, FALSE)) {
				$className = 'ux_' . $className;
			}
		}

		return $className;
	}
1354654
protected function isSourcePluginSuffixValid(string $className): bool
    {
        $suffix = substr($className, -strlen(static::EXPECTED_CLASS_NAME_SUFFIX));

        return ($suffix === static::EXPECTED_CLASS_NAME_SUFFIX);
    }
1038105
private function classNameMatchesFileName(string $filename, string $className): bool
    {
        return strpos($filename, $className) !== false
            || strpos($filename, $this->invertSlashes($className)) !== false;
    }
70878
public static function getMappedClassName($className)
    {
        $mappedName = array_search($className, self::$classMap);

        if ($mappedName) {
            return $mappedName;
        }

        $mappedName = array_search($className, array_flip(self::$classMap));

        if ($mappedName) {
            return $mappedName;
        }

        return false;
    }
1206228
public function getClassId($className)
    {
        $xPath = new DOMXPath($this->_getInitialDom());
        $nodeList = $xPath->query("//*[@cl='{$className}' or @list='{$className}']");
        if ($nodeList->length && ($firstItem = $nodeList->item(0))) {
            return $firstItem->getAttribute('id');
        }
    }
1152722
public function contains($className)
    {
        if (!is_string($className)) {
            throw new InvalidArgumentException(sprintf('%s expects parameter 1 to be string, %s given', __METHOD__, (is_object($className) ? get_class($className) : gettype($className))));
        }

        $this->parseClassAttribute();

        return in_array($className, $this->classes, true);
    }
953823
public function hasAttributeClass($className)
    {
        if ( ! $this->offsetExists('class')) {
            $this->storage[ 'class' ] = [];
        }

        return in_array($className, $this->storage[ 'class' ]);
    }
843779
public function hasObjectManagerByClassName($className)
    {
        $realClass = ClassUtils::getRealClass($className);

        if ($this->hasObjectManagerNameByClassName($realClass)) {
            $objectManagerName = $this->getObjectManagerNameByClassName($realClass);
            return $this->getDoctrineObjectManager()->has($objectManagerName);
        }
        return false;
    }
621233
protected function validateItem (MenuItem $item)
    {
        // MenuItem has children.
        if (count($item->getChildren()) > 0) {
            foreach ($item->getChildren() as $childItem) {
                if (! $this->validateItem($childItem)) {
                    return false;
                }
            }

            // If there are children, the title cannot be longer than 16 characters.
            if (strlen($item->getTitle()) > 16) {
                return false;
            }
            
            return true;
        }

        // Title cannot be longer than 40 characters.
        if (strlen($item->getTitle()) > 40) {
            return false;
        }

        // URLs cannot be longer than 256 characters.
        if ($item->getType() == MenuItem::URL && strlen($item->getKey()) > 256) {
            return false;
        } elseif (strlen($item->getKey()) > 128) {
            return false;
        } elseif (strlen($item->getKey()) < 1) {
            return false;
        }

        return true;
    }
164485
public function isClassAnnotatedWith($className, $annotationClassName)
    {
        if (!$this->initialized) {
            $this->initialize();
        }
        $className = $this->cleanClassName($className);

        $annotationClassName = $this->cleanClassName($annotationClassName);

        return (isset($this->annotatedClasses[$annotationClassName][$className]));
    }
572636
public function isValidDriverClass($className)
    {
        if (!class_exists($className)) {
            return false;
        }

        if (!is_subclass_of($className, 'Bex\\Behat\\ExtensionDriverLocator\\DriverInterface')) {
            return false;
        }

        if (!empty($this->parent) && !is_subclass_of($className, $this->parent)) {
            return false;
        }

        return true;
    }
674468
public static function isClassAbstract($className)
    {
        if (!class_exists($className)) {
            return false;
        }

        $reflectionClass = new \ReflectionClass($className);

        return $reflectionClass->isAbstract();
    }