Get static class property isDismissed.

@since 2.0.1

@hook: Boldgrid\Library\Notice\KeyPrompt\getIsDismissed
545005
public function getIsDismissed() {
		if( is_null( self::$isDismissed ) ) {
			self::$isDismissed = Library\Notice::isDismissed( $this->userNoticeKey );
		}

		return self::$isDismissed;
	}
381377
protected static function getResolvedClassInstance()
    {
        $classNamespace = static::getStaticClassAccessor();
        $resolvedClassInstance = self::getClass($classNamespace);
        
        if (! $resolvedClassInstance) {
            return self::resolveClassNameSpace($classNamespace);  
        }

        return $resolvedClassInstance;
    }
1229633
private function getIsReadOnlyPropertyDeclaration()
    {

        if( !isset( $this->isReadOnly ) ) {
            return $this;
        }

        if( !defined( "\Bond\Entity\Base::{$this->isReadOnly}" ) ) {
            throw new \InvalidArgumentException("normality.isReadOnly has bad value `{$this->isReadOnly}`.");
        }

        $this->class->classComponents[] = new VariableDeclaration(
            'isReadOnly',
            new Sformatf( <<<'PHP'
                /**
                 * The readonly property
                 * @var string
                 */
                protected static $isReadOnly = self::%s;
PHP
                , $this->isReadOnly
            )
        );
        return $this;

    }
61781
private function getKeyPropertiesDeclaration()
    {

        if( !$this->keyProperties ) {
            return $this;
        }

        $keyProperties = array_map(
            function($property){
                return "'".addslashes($property)."'";
            }
            , $this->keyProperties
        );

        $this->class->classComponents[] = new VariableDeclaration(
            'keyProperties',
            new Sformatf( <<<'PHP'
                /**
                 * Object properties which comprise this Entity's key.
                 * @var array
                 */
                protected static $keyProperties = [%s];
PHP
                , implode( ', ', $keyProperties )
            )
        );

        return $this;

    }
1295224
public function disabled($className = '')
    {
        if (!$className) {
            $className = $this->config->get('crumbs.disabled_item_class');
        }

        return $this->isDisabled() ? $className : '';
    }
1117131
public function is_accessible() {
        $available = $this->properties->available;
        $deadline = $this->properties->deadline;
        return (($available == 0 || time() >= $available) && ($deadline == 0 || time() < $deadline));
    }
612515
public function getIsInstructable()
    {
        $isAjax = (isset(Yii::$app->request->isAjax) && Yii::$app->request->isAjax);
        if (isset($_GET['_instruct'])) {
            if (!empty($_GET['_instruct'])) {
                $this->forceInstructions = true;
                $this->disableInstructions = false;
            } else {
                $this->forceInstructions = false;
                $this->disableInstructions = true;
            }
        }

        return (is_array($this->data) || $this->forceInstructions || $isAjax) && !$this->disableInstructions;
    }
1136445
private <T> T getTyped(PropertyKey key, Class<T> clazz) {
        Property p = getProperty(key.m_key);
        
        if (null == p || null == p.getData()) {
            return clazz.cast(m_defaults.get(key));
        }

        return clazz.cast(p.getData());
    }
736970
public function getInheritanceColumnValue()
    {
        if (!isset($this->_inheritance_column_value)) {
            $classname = $this->getEntityIdentifier()->classname;
            $classes = get_parents($classname, 'AnDomainEntity');
            $classes[] = $classname;
            //remove the first class because it's parent and
            //in STI (single table inheritane) we don't store the
            //orginal enitty class
            array_shift($classes);
            foreach ($classes as $key => $class) {
                if (isset($this->_class_alias[$class])) {
                    $class = ucfirst($this->_class_alias[$class]);
                }
                if (empty($class)) {
                    unset($classes[$key]);
                } else {
                    $classes[$key] = $class;
                }
            }

            //mak sure ther are no repeating classes. This could happen
            //if some of the entities are extending the default
            $classes = array_unique($classes);

            $identifier = clone $this->getEntityIdentifier();
            $identifier->application = null;
            $this->_inheritance_column_value = new AnDomainDescriptionInheritance($classes, $this->_is_abstract ? null : $identifier);
        }

        return $this->_inheritance_column_value;
    }
465261
public function ajaxDismiss() {
		if ( ! current_user_can( $this->userRole ) ) {
			wp_send_json_error( __( 'Permission denied.', 'boldgrid-library' ) );
		}

		if( ! check_ajax_referer( 'bglib-rating-prompt', 'security', false ) ) {
			wp_send_json_error( __( 'Invalid nonce.', 'boldgrid-library' ) );
		}

		$name          = sanitize_text_field( $_POST['name'] );
		$type          = sanitize_text_field( $_POST['type'] );
		$snooze_length = (int) $_POST['length'];

		switch( $type ) {
			case 'dismiss':
				$dismissed = $this->updatePromptKey( $name, 'time_dismissed', time() );
				$dismissed ? wp_send_json_success() : wp_send_json_error( __( 'Error dismissing prompt', 'boldgrid-library' ) );
				break;
			case 'snooze':
				$time_snoozed_set = $this->updatePromptKey( $name, 'time_snoozed', time() );
				$snoozed          = $this->updatePromptKey( $name, 'time_snoozed_until', time() + $snooze_length );
				$time_snoozed_set && $snoozed ? wp_send_json_success() : wp_send_json_error( __( 'Error snoozing prompt', 'boldgrid-library' ) );
				break;
			default:
				wp_send_json_error( __( 'Unknown action.', 'boldgrid-library' ) );
		}
	}
275985
public function getDiscriminatedClass(PropertyMetadata $mapping, $discriminator = null)
    {
        if ($discriminator === null) {
            $discriminator = $mapping->discriminatorDefaultValue;
        }

        if ($discriminator !== null) {
            if (isset($mapping->discriminatorMap[$discriminator])) {
                $discriminator = $mapping->discriminatorMap[$discriminator];
            }

            return $this->dm->getClassMetadata($discriminator);
        }

        if ($mapping->targetDocument === null) {
            throw ODMException::mixedAssociationRequiresDiscriminator();
        }

        //get the class
        $class = $this->dm->getClassMetadata($mapping->targetDocument);

        //check for single-table inheritance discriminator
        if ($class->discriminatorDefaultValue !== null) {
            $discriminator = $class->discriminatorDefaultValue;
        }

        if ($discriminator !== null) {
            if (isset($class->discriminatorMap[$discriminator])) {
                $discriminator = $class->discriminatorMap[$discriminator];
            }

            $class = $this->dm->getClassMetadata($discriminator);
        }

        return $class;
    }
1030471
private boolean checkSingleColumnEditorDisabled() {
        final int size = listEditor.getList().size();
        final boolean hasEditors = !listEditor.getEditors().isEmpty();
        if (size == 1 && hasEditors) {
            setEditorEnabled(0 ,false, DataSetEditorConstants.INSTANCE.dataSetMustHaveAtLeastOneColumn());
            return true;
        }
        return false;
    }
717013
@Override
    public String _getIDClass() {
        IdClass idCls = this.getIdClass();
        if (idCls == null) {
            return null;
        }

        return idCls.getClazz();
    }
1308389
public function keyNotice() {
		$display_notice = apply_filters(
			'Boldgrid\Library\Library\Notice\KeyPrompt_display',
			( ! Library\Notice::isDismissed( $this->userNoticeKey ) )
		);

		if ( $display_notice ) {
			$current_user = wp_get_current_user();
			$email = $current_user->user_email;
			$first_name = empty( $current_user->user_firstname ) ? '' : $current_user->user_firstname;
			$last_name = empty( $current_user->user_lastname ) ? '' : $current_user->user_lastname;
			$api = Library\Configs::get( 'api' ) . '/api/open/generateKey';

			/**
			 * Check if the Envato notice to claim a Premium Connect Key should be enabled.
			 *
			 * A theme can add this filter and return true, which will enable this notice.
			 *
			 * @since 2.1.0
			 */
			$enableClaimMessage = apply_filters(
				'Boldgrid\Library\Library\Notice\ClaimPremiumKey_enable',
				false
			);

			include dirname( __DIR__ ) . '/Views/KeyPrompt.php';

			self::$isDisplayed = true;
		}
	}
1110937
private function getMakeablePropertyDeclaration()
    {

        if( $this->entity->pgClass->isView() or $this->entity->pgClass->isMaterialisedView() ) {
            $makeable = 'MAKEABLE_EXCEPTION';
        }

        if( array_key_exists( 'makeable', $this->entity->normalityTags ) ) {
            $makeable = $this->entity->normalityTags['makeable'];
        }

        if( !isset( $makeable ) ) {
            return;
        }

        if( !defined( "\Bond\Repository::{$makeable}" ) ) {
            throw new \InvalidArgumentException("normality.makeable has bad value `{$makeable}`.");
        }

        $this->class->classComponents[] = new VariableDeclaration(
            'resolver',
            new SFormatf( <<<'PHP'
                /**
                 * Makeable
                 * @var string
                 */
                protected $makeable = self::%s;
PHP
                , $makeable
            )
        );

    }
1172384
private function getClassDeclaration()
    {
        return new Format(
            sprintf(
                '%sclass %s%s%s',
                $this->isAbstract ? 'abstract ' : '',
                $this->class,
                $this->getImplementOrExtendsDeclaration('extends', $this->extends),
                $this->getImplementOrExtendsDeclaration('implements', $this->implements)
            )
        );
    }
658840
public function hasDiscriminatorValue($className)
    {
        if (array_key_exists($className, $this->discriminatorValueMap)) {
            return false !== $this->discriminatorValueMap[$className];
        }
        $this->discriminatorValueMap[$className] = $this->buildDiscriminatorValueMap($className);

        return $this->discriminatorValueMap[$className];
    }