framework/db/Command.php
public function truncateTable($table)
    {
        $sql = $this->db->getQueryBuilder()->truncateTable($table);

        return $this->setSql($sql);
    }
public function truncateTable($table)
    {
        $sql = $this->db->getQueryBuilder()->truncateTable($table);

        return $this->setSql($sql);
    }
Creates a SQL command for truncating a DB table.
@param string $table the table to be truncated. The name will be properly quoted by the method.
@return $this the command object itself