public function canDelete($member=null) {
        $parentResult=parent::canDelete($member);
        
        if($parentResult==false || $this->UserLanguage==false) {
            return false;
        }
        
        if($this->Folders()->count()>0 || $this->Snippets()->count()>0) {
            return false;
        }
        
        return true;
    }
public function canDelete($member=null) {
        $parentResult=parent::canDelete($member);
        
        if($parentResult==false || $this->UserLanguage==false) {
            return false;
        }
        
        if($this->Folders()->count()>0 || $this->Snippets()->count()>0) {
            return false;
        }
        
        return true;
    }
public function canDelete ( $ member = null ) { $ parentResult = parent :: canDelete ( $ member ) ; if ( $ parentResult == false || $ this -> UserLanguage == false ) { return false ; } if ( $ this -> Folders ( ) -> count ( ) > 0 || $ this -> Snippets ( ) -> count ( ) > 0 ) { return false ; } return true ; }
Checks to see if the given member can delete this object or not
@param {Member} $member Member instance or member id to check
@return {bool} Returns boolean true or false depending if the user can delete this object
Checks to see if the given member can delete this object or not