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
778225
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';
        }
    }
719820
public void setTableDefinition(TableDefinition tableDef) {
        m_tableDef = tableDef;
        
        // LINK and XLINK 'table' defaults to owning table.
        if (m_type.isLinkType() && Utils.isEmpty(m_linkExtent)) {
            m_linkExtent = tableDef.getTableName();
        }
    }
308562
@Override
    public void setEnabled(boolean enabled) {
        context.setEnabled(enabled);
        thisTable.setEnabled(enabled);
        localsTable.setEnabled(enabled);
        evaluator.setEnabled(enabled);
        cmdLine.setEnabled(enabled);
    }
409599
protected function createTable(Table $table): void
	{
		$table->addPrimaryKey('id')
			->int()
			->setAutoIncrement();
		$table->addForeignKey('groupId', PagesLinksGroupsMapper::class);
		$table->addColumn('name')
			->text();
		$table->addColumn('url')
			->varChar();
		$table->addColumn('content')
			->text()
			->setDefault(null);
		$table->addColumn('description')
			->text()
			->setDefault(null);
		$table->addColumn('image')
			->varChar()
			->setDefault(null);
		$table->addColumn('position')
			->int(3);
		$table->addColumn('visible')
			->bool()
			->setDefault(1);
		$table->addColumn('openNewWindow')
			->bool()
			->setDefault(0);
	}
160853
def setTable( self, table ):
        
        self._table = table
        self.setEnabled(table is not None)
        self.clear()
717295
public void setEditable(String editable) {

        if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(editable)) {
            m_editable = Boolean.valueOf(editable).booleanValue();
        }
    }
1244118
public function orderTables() {
        $result = $this->orderElements($this->tables);
        if ($result) {
            $this->setTables($result);
            return true;
        } else {
            return false;
        }
    }
1076099
public function setEditable(string $editable = "F") : CNabuDataObject
    {
        if ($editable === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$editable")
            );
        }
        $this->setValue('nb_site_lang_editable', $editable);
        
        return $this;
    }
127733
protected function setTableDefinition()
    {
        $this->setTableName($this->getPlugin()->getName());
        $this->hasColumns(array(
            'id' => array(
                'type' => 'integer',
                'unsigned' => true,
                'autoincrement' => true
            ),
            'name' => array(
                'type' => 'string',
                'length' => 255,
            ),
            'caption' => array(
                'type' => 'string',
                'length' => 255,
            ),
            'active' => array(
                'type' => 'boolean',
            ),
            'root' => array(
                'type' => 'integer',
                'unsigned' => true,
            ),
            'rootLevel' => array(
                'type' => 'integer',
                'unsigned' => true,
                'default' => 0,
            ),
            'invisible' => array(
                'type' => 'boolean',
                'default' => 0  ,
            ),
            'expandLevelAuto' => array(
                'type' => 'integer',
                'unsigned' => true,
                'default' => 0,
            ),
            'expandLevelMax' => array(
                'type' => 'integer',
                'unsigned' => true,
                'default' => 0,
            ),
            'dropDown' => array(
                'type' => 'integer',
                'unsigned' => true,
                'default' => 0,
            ),
            'template' => array(
                'type' => 'string',
                'length' => 65535,
            ),
        ));
        $this->index('client', array('fields' => array('name', 'active')));
        $this->index('admin', array('fields' => array('name')));
    }
411425
public void setTableNames(java.util.Collection<String> tableNames) {
        if (tableNames == null) {
            this.tableNames = null;
            return;
        }

        java.util.List<String> tableNamesCopy = new java.util.ArrayList<String>(tableNames.size());
        tableNamesCopy.addAll(tableNames);
        this.tableNames = tableNamesCopy;
    }
1231552
private function setTableName(ClassMetadataBuilder $builder): void
    {
        $tableName = MappingHelper::getTableNameForEntityFqn($this->reflectionClass->getName());
        $builder->setTable($tableName);
    }
61317
public void setEnabled(boolean bEnable)
    {
        super.setEnabled(bEnable);
        if (m_recordReference != null)
        {
            Record recReference = this.getReferenceRecord();
            for (int iIndex = 0 + 1; iIndex < recReference.getKeyAreaCount(); iIndex++)
            {
                KeyArea keyArea = recReference.getKeyArea(iIndex);
                BaseField fieldKey = keyArea.getField(DBConstants.MAIN_KEY_FIELD);
                if (fieldKey.getListener(MainReadOnlyHandler.class.getName()) != null)
                    fieldKey.setEnabled(bEnable);
            }
        }
    }
1336104
public function setFilterable($filterable = true)
    {
        foreach ($this->results as $name) {
            $this->columns->offsetGet($name)->setFilterable($filterable);
        }

        return $this;
    }
1247852
public function rename($newTableName)
    {
        $this->actions->addAction(new RenameTable($this->table, $newTableName));

        return $this;
    }
498330
protected function setTable(string $tableName, string $tableAlias = '')
    {
        $this->tableName = $tableName;
        $this->tableAlias = $tableAlias;
    }
389415
public void setEditable(final int row, final int col, final boolean enable) {
		final int actualIndex = getTableColumn(col).getIndex();
		getRecord(row).setColumnEnabled(actualIndex, enable);
	}
66878
public function table($name, callable $callback)
    {
        $blueprint = new Blueprint($name, $callback);

        $this->blueprints[$name] = $blueprint->build();
    }