Skip to content

Commit

Permalink
Remove extra lines
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Caruso <[email protected]>
  • Loading branch information
carusogabriel committed Dec 31, 2017
1 parent a2e3b95 commit e1c04f2
Show file tree
Hide file tree
Showing 54 changed files with 0 additions and 197 deletions.
2 changes: 0 additions & 2 deletions user_guide_src/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ New packages:
- \\ MySQLi \\ Builder, Connection, Forge, Result
- \\ Postgre \\ Builder, Connection, Forge, Result, Utils


- Debug

- \\ CustomExceptions, Exceptions, Iterator, Timer, Toolbar
Expand Down Expand Up @@ -65,5 +64,4 @@ New packages:
- Zend \\ Escaper, Exception \\ ... **third party**
- RendererInterface, View


User Guide adapted or rewritten.
2 changes: 0 additions & 2 deletions user_guide_src/source/concepts/http.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ a simple text message that looks something like this::
. . .
</html>


The response tells the client what version of the HTTP specification that it's using and, probably most
importantly, the status code (200). The status code is one of a number of codes that have been standardized
to have a very specific meaning to the client. This can tell them that it was successful (200), or that the page
Expand Down Expand Up @@ -95,7 +94,6 @@ is an object-oriented representation of the HTTP request. It provides everything

$request->getMethod(); // GET, POST, PUT, etc


The request class does a lot of work in the background for you, that you never need to worry about.
The ``isAJAX()`` and ``isSecure()`` methods check several different methods to determine the correct answer.

Expand Down
3 changes: 0 additions & 3 deletions user_guide_src/source/concepts/mvc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ wherever you desire, as long as they are properly namespaced. We will discuss th

Let's take a closer look at each of these three main components.


**************
The Components
**************
Expand All @@ -49,7 +48,6 @@ That's not a problem. As long as CodeIgniter can find the file, it can display i

:doc:`Find out more about views </general/views>`


Models
======

Expand All @@ -67,7 +65,6 @@ Models are typically stored in **/application/Models**, though they can use a na

:doc:`Find out more about models </database/model>`


Controllers
===========

Expand Down
2 changes: 0 additions & 2 deletions user_guide_src/source/concepts/structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ structure that works well for many applications. The following folders make up t
/Models Models work with the database to represent the business entities.
/Views Views make up the HTML that is displayed to the client.
Because the ``application`` directory is already namespaced, you should feel free to modify the structure
of this directory to suit your application's needs. For example, you might decide to start using the Repository
pattern and Entity Models to work with your data. In this case, you could rename the ``Models`` directory to
Expand Down Expand Up @@ -67,7 +66,6 @@ This includes directories for storing cache files, logs, and any uploads a user
directories that your application will need to write to here. This allows you to keep your other primary directories
non-writable as an added security measure.


tests
-----
This directory is setup to hold your test files. The ``_support`` directory holds various mock classes and other
Expand Down
2 changes: 0 additions & 2 deletions user_guide_src/source/contributing/documentation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ Pygments, so that code blocks can be properly highlighted.
Then follow the directions in the README file in the :samp:`cilexer` folder
inside the documentation repository to install the CI Lexer.



*****************************************
Page and Section Headings and Subheadings
*****************************************
Expand Down
1 change: 0 additions & 1 deletion user_guide_src/source/contributing/signing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ contributions be securely signed.

Read below to find out how to sign your commits :)


Basic Signing
=============
You must sign your work, certifying that you either wrote the work or
Expand Down
2 changes: 0 additions & 2 deletions user_guide_src/source/contributing/styleguide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ operators line up with each other::
$third = 3;
}


.. note:: Our indenting and alignment convention differs from PSR-2, which
**only** uses spaces for both indenting and alignment.

Expand Down Expand Up @@ -173,7 +172,6 @@ MUST be used for each such property "x"

- Methods SHOULD use type hints and return type hints


Procedural code
===============

Expand Down
2 changes: 0 additions & 2 deletions user_guide_src/source/database/connecting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Connecting to your Database
###########################


You can connect to your database by adding this line of code in any
function where it is needed, or in your class constructor to make the
database available globally in that class.
Expand Down Expand Up @@ -44,7 +43,6 @@ to the same database, send ``false`` as the second parameter::

$db = \Config\Database::connect('group_name', false);


Connecting to Multiple Databases
================================

Expand Down
2 changes: 0 additions & 2 deletions user_guide_src/source/database/entities.rst
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ business logic and create objects that are pleasant to use.
$user->password = 'my great password';
$user->setPassword('my great password');


Data Mapping
============

Expand Down Expand Up @@ -263,7 +262,6 @@ through the original ``$user->full_name``, also, as this is needed for the model
to the database. However, ``unset`` and ``isset`` only work on the mapped property, ``$name``, not on the original name,
``full_name``.


Mutators
========

Expand Down
19 changes: 0 additions & 19 deletions user_guide_src/source/database/forge.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ Returns TRUE/FALSE based on success or failure::
echo 'Database deleted!';
}


****************************
Creating and Dropping Tables
****************************
Expand All @@ -78,7 +77,6 @@ also require a 'constraint' key.
);
// will translate to "users VARCHAR(100)" when the field is added.


Additionally, the following key/values can be used:

- unsigned/true : to generate "UNSIGNED" in the field definition.
Expand Down Expand Up @@ -115,7 +113,6 @@ Additionally, the following key/values can be used:
),
);


After the fields have been defined, they can be added using
``$forge->addField($fields);`` followed by a call to the
``createTable()`` method.
Expand All @@ -124,7 +121,6 @@ After the fields have been defined, they can be added using

The add fields method will accept the above array.


Passing strings as fields
-------------------------

Expand All @@ -135,7 +131,6 @@ string into the field definitions with addField()

$forge->addField("label varchar(100) NOT NULL DEFAULT 'default label'");


.. note:: Passing raw strings as fields cannot be followed by ``add_key()`` calls on those fields.

.. note:: Multiple calls to add_field() are cumulative.
Expand All @@ -152,7 +147,6 @@ Primary Key.
$forge->addField('id');
// gives id INT(9) NOT NULL AUTO_INCREMENT


Adding Keys
===========

Expand All @@ -179,26 +173,21 @@ below is for MySQL.
$forge->addKey(array('blog_name', 'blog_label'));
// gives KEY `blog_name_blog_label` (`blog_name`, `blog_label`)


Adding Foreign Keys
===================

::


$forge->addForeignKey('users_id','users','id');
// gives CONSTRAINT `TABLENAME_users_foreign` FOREIGN KEY(`users_id`) REFERENCES `users`(`id`)


You can specify the desired action for the "on delete" and "on update" properties of the constraint:

::

$forge->addForeignKey('users_id','users','id','CASCADE','CASCADE');
// gives CONSTRAINT `TABLENAME_users_foreign` FOREIGN KEY(`users_id`) REFERENCES `users`(`id`) ON DELETE CASCADE ON UPDATE CASCADE



Creating a table
================

Expand All @@ -210,7 +199,6 @@ with
$forge->createTable('table_name');
// gives CREATE TABLE table_name


An optional second parameter set to TRUE adds an "IF NOT EXISTS" clause
into the definition

Expand All @@ -229,7 +217,6 @@ You could also pass optional table attributes, such as MySQL's ``ENGINE``::
``createTable()`` will always add them with your configured *charset*
and *DBCollat* values, as long as they are not empty (MySQL only).


Dropping a table
================

Expand All @@ -253,7 +240,6 @@ Execute a DROP FOREIGN KEY.
// Produces: ALTER TABLE 'tablename' DROP FOREIGN KEY 'users_foreign'
$forge->dropForeignKey('tablename','users_foreign');


Renaming a table
================

Expand All @@ -264,7 +250,6 @@ Executes a TABLE rename
$forge->renameTable('old_table_name', 'new_table_name');
// gives ALTER TABLE old_table_name RENAME TO new_table_name


****************
Modifying Tables
****************
Expand Down Expand Up @@ -301,7 +286,6 @@ Examples::
'preferences' => array('type' => 'TEXT', 'first' => TRUE)
);


Dropping a Column From a Table
==============================

Expand All @@ -313,8 +297,6 @@ Used to remove a column from a table.

$forge->dropColumn('table_name', 'column_to_drop');



Modifying a Column in a Table
=============================

Expand All @@ -335,7 +317,6 @@ change the name you can add a "name" key into the field defining array.
$forge->modifyColumn('table_name', $fields);
// gives ALTER TABLE table_name CHANGE old_name new_name TEXT


***************
Class Reference
***************
Expand Down
4 changes: 0 additions & 4 deletions user_guide_src/source/database/metadata.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ you are currently connected to. Example::
echo $table;
}


Determine If a Table Exists
===========================

Expand All @@ -39,7 +38,6 @@ running an operation on it. Returns a boolean TRUE/FALSE. Usage example::

.. note:: Replace *table_name* with the name of the table you are looking for.


**************
Field MetaData
**************
Expand Down Expand Up @@ -72,7 +70,6 @@ calling the function from your query result object::
echo $field;
}


Determine If a Field is Present in a Table
==========================================

Expand All @@ -90,7 +87,6 @@ performing an action. Returns a boolean TRUE/FALSE. Usage example::
for, and replace *table_name* with the name of the table you are
looking for.


Retrieve Field Metadata
=======================

Expand Down
3 changes: 0 additions & 3 deletions user_guide_src/source/database/migration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ This example will migrate Blog namespace to latest::

> php spark migrate:latest -g test -n Blog


**current**

Migrates the (App) namespace to match the version set in ``$currentVersion``. This will migrate both
Expand Down Expand Up @@ -240,7 +239,6 @@ You can use (rollback) with the following options:
- (-n) to choose namespace, otherwise (App) namespace will be used.
- (all) to migrate all namespaces to the latest migration


**refresh**

Refreshes the database state by first rolling back all migrations, and then migrating to the latest version::
Expand All @@ -253,7 +251,6 @@ You can use (refresh) with the following options:
- (-n) to choose namespace, otherwise (App) namespace will be used.
- (all) to migrate all namespaces to the latest migration


**status**

Displays a list of all migrations and the date and time they were ran, or '--' if they have not be ran::
Expand Down
3 changes: 0 additions & 3 deletions user_guide_src/source/database/model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ Returns the first row in the result set. This is best used in combination with t
$user = $userModel->where('deleted', 0)
->first();


**withDeleted()**

If $useSoftDeletes is true, then the find* methods will not return any rows where 'deleted = 1'. To
Expand Down Expand Up @@ -496,7 +495,6 @@ very elegant use::

$user_name = $userModel->escape($name);


Runtime Return Type Changes
----------------------------

Expand All @@ -523,7 +521,6 @@ Returns data from the next find*() method as standard objects or custom class in
// Return as custom class instances
$users = $userModel->asObject('User')->findWhere('status', 'active');


Processing Large Amounts of Data
--------------------------------

Expand Down
5 changes: 0 additions & 5 deletions user_guide_src/source/database/queries.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,12 @@ the following::

$db->prefixTable('tablename'); // outputs prefix_tablename


If for any reason you would like to change the prefix programatically
without needing to create a new connection, you can use this method::

$db->setPrefix('newprefix');
$db->prefixTable('tablename'); // outputs newprefix_tablename


**********************
Protecting identifiers
**********************
Expand All @@ -94,7 +92,6 @@ prefixing set TRUE (boolean) via the second parameter::

$db->protectIdentifiers('table_name', TRUE);


****************
Escaping Queries
****************
Expand Down Expand Up @@ -133,7 +130,6 @@ this:
yourself, it cannot automatically add the ``ESCAPE '!'``
condition for you, and so you'll have to manually do that.


**************
Query Bindings
**************
Expand Down Expand Up @@ -192,7 +188,6 @@ example::
$error = $db->error(); // Has keys 'code' and 'message'
}


****************
Prepared Queries
****************
Expand Down
Loading

0 comments on commit e1c04f2

Please sign in to comment.