public function verify()
    {
        if (!$this->validate()) {
            return null;
        }
        $this->_query = Thread::find()->where([
                            Thread::tableName() . '.id' => $this->threadId,
                            Thread::tableName() . '.slug' => $this->threadSlug,
                            Thread::tableName() . '.forum_id' => $this->forumId,
                            Thread::tableName() . '.category_id' => $this->categoryId,
                        ]);
        if (Podium::getInstance()->user->isGuest) {
            return $this->getThreadForGuests();
        }
        return $this->getThreadForMembers();
    }
public function verify()
    {
        if (!$this->validate()) {
            return null;
        }
        $this->_query = Thread::find()->where([
                            Thread::tableName() . '.id' => $this->threadId,
                            Thread::tableName() . '.slug' => $this->threadSlug,
                            Thread::tableName() . '.forum_id' => $this->forumId,
                            Thread::tableName() . '.category_id' => $this->categoryId,
                        ]);
        if (Podium::getInstance()->user->isGuest) {
            return $this->getThreadForGuests();
        }
        return $this->getThreadForMembers();
    }
public function verify ( ) { if ( ! $ this -> validate ( ) ) { return null ; } $ this -> _query = Thread :: find ( ) -> where ( [ Thread :: tableName ( ) . '.id' => $ this -> threadId , Thread :: tableName ( ) . '.slug' => $ this -> threadSlug , Thread :: tableName ( ) . '.forum_id' => $ this -> forumId , Thread :: tableName ( ) . '.category_id' => $ this -> categoryId , ] ) ; if ( Podium :: getInstance ( ) -> user -> isGuest ) { return $ this -> getThreadForGuests ( ) ; } return $ this -> getThreadForMembers ( ) ; }
Returns verified thread.
@return Thread
Returns verified thread .