public function usePreviewTables($bEnabled)
    {
        if (!empty($bEnabled)) {

            $this->isPreviewMode = true;

            $this->table      = NAILS_DB_PREFIX . 'blog_post_preview';
            $this->tableAlias = 'bp';

            $this->tableCat       = NAILS_DB_PREFIX . 'blog_post_preview_category';
            $this->tableCatPrefix = 'bpc';

            $this->tableTag       = NAILS_DB_PREFIX . 'blog_post_preview_tag';
            $this->tableTagPrefix = 'bpt';

            $this->tableImg       = NAILS_DB_PREFIX . 'blog_post_preview_image';
            $this->tableImgPrefix = 'bpi';

        } else {

            $this->isPreviewMode = false;

            $this->table      = NAILS_DB_PREFIX . 'blog_post';
            $this->tableAlias = 'bp';

            $this->tableCat       = NAILS_DB_PREFIX . 'blog_post_category';
            $this->tableCatPrefix = 'bpc';

            $this->tableTag       = NAILS_DB_PREFIX . 'blog_post_tag';
            $this->tableTagPrefix = 'bpt';

            $this->tableImg       = NAILS_DB_PREFIX . 'blog_post_image';
            $this->tableImgPrefix = 'bpi';
        }
    }
public function usePreviewTables($bEnabled)
    {
        if (!empty($bEnabled)) {

            $this->isPreviewMode = true;

            $this->table      = NAILS_DB_PREFIX . 'blog_post_preview';
            $this->tableAlias = 'bp';

            $this->tableCat       = NAILS_DB_PREFIX . 'blog_post_preview_category';
            $this->tableCatPrefix = 'bpc';

            $this->tableTag       = NAILS_DB_PREFIX . 'blog_post_preview_tag';
            $this->tableTagPrefix = 'bpt';

            $this->tableImg       = NAILS_DB_PREFIX . 'blog_post_preview_image';
            $this->tableImgPrefix = 'bpi';

        } else {

            $this->isPreviewMode = false;

            $this->table      = NAILS_DB_PREFIX . 'blog_post';
            $this->tableAlias = 'bp';

            $this->tableCat       = NAILS_DB_PREFIX . 'blog_post_category';
            $this->tableCatPrefix = 'bpc';

            $this->tableTag       = NAILS_DB_PREFIX . 'blog_post_tag';
            $this->tableTagPrefix = 'bpt';

            $this->tableImg       = NAILS_DB_PREFIX . 'blog_post_image';
            $this->tableImgPrefix = 'bpi';
        }
    }
public function usePreviewTables ( $ bEnabled ) { if ( ! empty ( $ bEnabled ) ) { $ this -> isPreviewMode = true ; $ this -> table = NAILS_DB_PREFIX . 'blog_post_preview' ; $ this -> tableAlias = 'bp' ; $ this -> tableCat = NAILS_DB_PREFIX . 'blog_post_preview_category' ; $ this -> tableCatPrefix = 'bpc' ; $ this -> tableTag = NAILS_DB_PREFIX . 'blog_post_preview_tag' ; $ this -> tableTagPrefix = 'bpt' ; $ this -> tableImg = NAILS_DB_PREFIX . 'blog_post_preview_image' ; $ this -> tableImgPrefix = 'bpi' ; } else { $ this -> isPreviewMode = false ; $ this -> table = NAILS_DB_PREFIX . 'blog_post' ; $ this -> tableAlias = 'bp' ; $ this -> tableCat = NAILS_DB_PREFIX . 'blog_post_category' ; $ this -> tableCatPrefix = 'bpc' ; $ this -> tableTag = NAILS_DB_PREFIX . 'blog_post_tag' ; $ this -> tableTagPrefix = 'bpt' ; $ this -> tableImg = NAILS_DB_PREFIX . 'blog_post_image' ; $ this -> tableImgPrefix = 'bpi' ; } }
Sets the table names to use, either the normal tables, or the preview tables.

@param  boolean $bEnabled Whether to use the preview tables or not

@return void
Sets the table names to use either the normal tables or the preview tables .