function isExpired()
	{
        eZDebug::writeDebug( 'Check expiration', __METHOD__ );

        // If passwordlifetime is not defined or 0 (zero, infinite lifetime) passwords never expire.
        if ( ( $this->attribute( 'passwordlifetime' ) == self::NOT_DEFINED ) ||
             ( $this->attribute( 'passwordlifetime' ) == 0 ) )
            return false;

        $passwordLastUpdated = $this->attribute( 'password_last_updated' );
        $actualPasswordlifetime = ceil( ( ( ( ( time() - $passwordLastUpdated ) / 60 ) / 60 ) / 24 ) );

        eZDebug::writeDebug( $passwordLastUpdated, __METHOD__ );
        eZDebug::writeDebug( $actualPasswordlifetime, __METHOD__ );

        if ( ( $actualPasswordlifetime > $this->attribute( 'passwordlifetime' ) ) ||
               $passwordLastUpdated == 0 ||
               $passwordLastUpdated == self::NOT_DEFINED )
        {
            return true;
        }

		return false;
	}
function isExpired()
	{
        eZDebug::writeDebug( 'Check expiration', __METHOD__ );

        // If passwordlifetime is not defined or 0 (zero, infinite lifetime) passwords never expire.
        if ( ( $this->attribute( 'passwordlifetime' ) == self::NOT_DEFINED ) ||
             ( $this->attribute( 'passwordlifetime' ) == 0 ) )
            return false;

        $passwordLastUpdated = $this->attribute( 'password_last_updated' );
        $actualPasswordlifetime = ceil( ( ( ( ( time() - $passwordLastUpdated ) / 60 ) / 60 ) / 24 ) );

        eZDebug::writeDebug( $passwordLastUpdated, __METHOD__ );
        eZDebug::writeDebug( $actualPasswordlifetime, __METHOD__ );

        if ( ( $actualPasswordlifetime > $this->attribute( 'passwordlifetime' ) ) ||
               $passwordLastUpdated == 0 ||
               $passwordLastUpdated == self::NOT_DEFINED )
        {
            return true;
        }

		return false;
	}
function isExpired ( ) { eZDebug :: writeDebug ( 'Check expiration' , __METHOD__ ) ; // If passwordlifetime is not defined or 0 (zero, infinite lifetime) passwords never expire. if ( ( $ this -> attribute ( 'passwordlifetime' ) == self :: NOT_DEFINED ) || ( $ this -> attribute ( 'passwordlifetime' ) == 0 ) ) return false ; $ passwordLastUpdated = $ this -> attribute ( 'password_last_updated' ) ; $ actualPasswordlifetime = ceil ( ( ( ( ( time ( ) - $ passwordLastUpdated ) / 60 ) / 60 ) / 24 ) ) ; eZDebug :: writeDebug ( $ passwordLastUpdated , __METHOD__ ) ; eZDebug :: writeDebug ( $ actualPasswordlifetime , __METHOD__ ) ; if ( ( $ actualPasswordlifetime > $ this -> attribute ( 'passwordlifetime' ) ) || $ passwordLastUpdated == 0 || $ passwordLastUpdated == self :: NOT_DEFINED ) { return true ; } return false ; }
Check if the password in the current paex object is expired

@return true if the difference between today and password_last_updated date is
greater than the value set in passwordlifetime
Check if the password in the current paex object is expired