Sets the Descriptor class name attribute value
@param int $class_name New value for attribute
@return CNabuHTTPRenderDescriptor Returns $this
507561
public function setClassName($class_name)
    {
        if ($class_name === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$class_name")
            );
        }

        $implements_list = class_implements($class_name, true);

        if (is_array($implements_list) &&
            array_search('nabu\http\interfaces\INabuHTTPResponseRender', $implements_list)
        ) {
            $this->setValue("nb_http_render_descriptor_class_name", $class_name);
        } else {
            throw new ENabuCoreException(ENabuCoreException::ERROR_INVALID_RENDER_DESCRIPTOR_CLASS);
        }

        return $this;
    }
367228
public static function SetClassVar ($name, $value, $const_flag = false) {
		$name_key = implode('=>', (array) $name);
		if ($const_flag && isset(static::$_ClassVariableTrait_ConstList[$name_key])) {
			throw CoreException::RaiseSystemError('%s is constant', [$name_key]);
		}
		if (is_array($name)) {
			static::$_ClassVariableTrait_Data = Arrays::SetLowest(static::$_ClassVariableTrait_Data, $name, $value);
		} else {
			static::$_ClassVariableTrait_Data[$name] = $value;
		}

		static::$_ClassVariableTrait_ConstList[$name_key] = $const_flag;
	}
597450
public function setInstanceName($instance_name)
    {

        if (!is_null($instance_name) && (!preg_match("/^[a-z0-9][a-z0-9-]{0,18}[a-z0-9]$/", $instance_name))) {
            throw new \InvalidArgumentException("invalid value for $instance_name when calling RequestAppCreate., must conform to the pattern /^[a-z0-9][a-z0-9-]{0,18}[a-z0-9]$/.");
        }

        $this->container['instance_name'] = $instance_name;

        return $this;
    }
120724
public static function GetClassVar ($name, $default_value = null) {
		if (is_array($name)) {
			return Arrays::GetLowest(static::$_ClassVariableTrait_Data, $name) ?: $default_value;
		}
		return isset(static::$_ClassVariableTrait_Data[$name]) ? static::$_ClassVariableTrait_Data[$name] : $default_value;
	}
764245
public function table(string $class_name, string $id_value = ''): self
    {
        if (preg_match(",\s,", $id_value)) {
            throw new DOMException("the id attribute's value must not contain whitespace (spaces, tabs etc.)");
        }
        $clone = clone $this;
        $clone->class_name = $class_name;
        $clone->id_value = $id_value;

        return $clone;
    }
709681
public function setPHPTrace(string $php_trace = "F") : CNabuDataObject
    {
        if ($php_trace === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$php_trace")
            );
        }
        $this->setValue('nb_site_target_php_trace', $php_trace);
        
        return $this;
    }
662379
public static function foreign_key($class_name, $use_underscore = true)
	{
		$class_name = static::denamespace(\Str::lower($class_name));
		if (strncasecmp($class_name, 'Model_', 6) === 0)
		{
			$class_name = substr($class_name, 6);
		}
		return static::underscore(static::demodulize($class_name)).($use_underscore ? "_id" : "id");
	}
157328
public static function load ($class_name)
	{
		$file_name = str_replace(self::MOLLIE_PREFIX, '', strtolower($class_name), $count);
		if (empty($count)) {
			return;
		}

		if (file_exists($file_name = __DIR__ . DIRECTORY_SEPARATOR . "$file_name.php")) {
			require $file_name;
		}
	}
862708
private function constructor(string $class_name, array $params = null)
    {
        $this->state->category = CompilerState::CATEGORY_CONSTRUCTOR;
        $this->state->name = '';
        $params_str = '';
        if (is_array($params)){
            $params_str = $this->decorateParamsForMethodCall($params);
        }
        return $class_name . '(' . $params_str . ')';
    }
365397
public function setEntityClassName($name)
    {
        $trimmedName = trim($name, '\\');

        if (!class_exists($trimmedName)) {
            throw new RuntimeException(sprintf('The class "%s" does not exist.', $trimmedName));
        }

        $this->entityClassName = $trimmedName;

        return $this;
    }
728779
protected function get_class_setting( $class_name, $add_namespace = '' ) {
		if ( isset( $this->_cache[ $add_namespace . $class_name ] ) ) {
			return $this->_cache[ $add_namespace . $class_name ];
		}
		$namespaces = $this->get_namespaces();
		if ( ! empty( $namespaces ) ) {
			foreach ( $namespaces as $namespace ) {
				$class = rtrim( $namespace, '\\' ) . '\\' . $add_namespace . $class_name;
				if ( class_exists( $class ) ) {
					$this->_cache[ $add_namespace . $class_name ] = [ $class, $add_namespace ];

					return $this->_cache[ $add_namespace . $class_name ];
				}
			}
		}

		return false;
	}
1176882
public function getNamespace($class_name)
	{
		$class_name = trim($class_name, '\\');
		if ($last_separator = strrpos($class_name, '\\'))
		{
			return substr($class_name, 0, $last_separator + 1);
		}
		return '';
	}
1190042
private function exprClass(Node $class_name) {
    $colon_node = new PartialNode();
    $this->mustMatch(T_DOUBLE_COLON, $colon_node);
    if ($this->currentType === T_STRING) {
      $class_constant = $this->mustMatchToken(T_STRING);
      if ($this->currentType === '(') {
        return $this->classMethodCall($class_name, $colon_node, $class_constant);
      }
      else {
        return $this->classConstant($class_name, $colon_node, $class_constant);
      }
    }
    elseif ($this->currentType === T_CLASS) {
      return $this->classNameScalar($class_name, $colon_node);
    }
    else {
      return $this->classVariable($class_name, $colon_node);
    }
  }
673259
public static function isInstanceOf($class_name) {
    $classes = func_get_args();

    return function ($node) use ($classes) {
      foreach ($classes as $class) {
        if ($node instanceof $class) {
          return TRUE;
        }
      }
      return FALSE;
    };
  }
649228
public void setDescriptor(String descriptor)
  {
    _descriptor = descriptor;

    if (_isWrite)
      _jClass.getConstantPool().addUTF8(descriptor);
  }
544382
final public static function getInstance($class_name = null)
    {
        if (is_null($class_name)) {
            $class_name = get_called_class();
        }

        $reflection = new \ReflectionClass($class_name);
        if (!$reflection->isInstantiable()) {
            throw new \Exception("The constructor of the class '$class_name' must be protected", 1);
        }

        if (empty(self::$pool[$class_name])) {
            self::$pool[$class_name] = new $class_name();
        }

        return self::$pool[$class_name];
    }
891798
public static function isClass($class_name) {
    $class_names = func_get_args();

    return function ($node) use ($class_names) {
      if ($node instanceof ClassNode) {
        return in_array($node->getName()->getText(), $class_names, TRUE);
      }
      return FALSE;
    };
  }