• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Updated Developer Information: Method canViewItemAttachments() (and others) has been deprecated and will be removed in Showcase 4.0

Bob

Developer
Staff member
This is a notice to 3rd party developers that extend Showcase...

As per title, the method canViewItemAttachments in the Item Entity has been deprecated and will be permanently removed in Showcase 4.0.

PHP:
    /**
     * @deprecated Use canViewAttachments instead
     *
     */
    public function canViewItemAttachments()
    {
        return $this->hasPermission('viewItemAttach');
    }


Also deprecated in the Item Entity are the following methods, which all have NEW methods added to the Item Entity.

PHP:
    /**
     * @deprecated Use canViewUpdateAttachments instead
     *
     */
    public function canViewUpdateImages()
    {
        return $this->hasPermission('viewUpdateAttach');
    }

PHP:
    /**
     * @deprecated Use canViewReviewAttachments instead
     *
     */
    public function canViewReviewImages()
    {
        return $this->hasPermission('viewReviewAttach');
    }

PHP:
    /**
     * @deprecated Use canViewCommentAttachments instead
     *
     */
    public function canViewCommentImages()
    {
        return $this->hasPermission('viewCommentAttach');
    }


Also deprecated in the Comment Entity is the following method which has a NEW method added to the Comment Entity.

PHP:
    /**
     * @deprecated Use canViewAttachments instead
     *
     */
    public function canViewCommentImages()
    {
        $content = $this->Content;
   
        return $content->hasPermission('viewCommentAttach');
    }


Also deprecated in the Item Update Entity is the following method which has a NEW method added to the Item Update Entity.

PHP:
    /**
     * @deprecated Use canViewAttachments instead
     *
     */
    public function canViewUpdateImages()
    {
        return $this->Item->hasPermission('viewUpdateAttach');
    }


Also deprecated in the Item Rating Entity is the following method which has a NEW method added to the Item Rating Entity.

PHP:
    /**
     * @deprecated Use canViewAttachments instead
     *
     */
    public function canViewReviewImages()
    {
        $item = $this->Item;
       
        return $item->hasPermission('viewReviewAttach');
    }
 
Last edited:
Upvote 0
This suggestion has been implemented. Votes are no longer accepted.
Also deprecated in the Category Entity are the following methods which have NEW methods added to the Category Entity. These deprecated methods will be permanently removed in Showcase 4.0.

PHP:
    /**
     * @deprecated Use canUploadAndManageUpdateAttachments instead
     *
     */
    public function canUploadAndManageUpdateImages()
    {
        return $this->hasPermission('uploadItemAttach');
    }

PHP:
    /**
     * @deprecated Use canUploadAndManageReviewAttachments instead
     *
     */
    public function canUploadAndManageReviewImages()
    {
        return $this->hasPermission('uploadReviewAttach');
    }

PHP:
    /**
     * @deprecated Use canUploadAndManageCommentAttachments instead
     *
     */
    public function canUploadAndManageCommentImages()
    {
        return $this->hasPermission('uploadCommentAttach');
    }
 
Back
Top