Skip to content

Commit 880fde3

Browse files
committed
spelling corrections
1 parent 55b4523 commit 880fde3

File tree

8 files changed

+24
-24
lines changed

8 files changed

+24
-24
lines changed

.htaccess

100755100644
File mode changed.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Simple PHP Framework
22

3-
This is a simple MVC framework written for personal needs on a smaller projects. The framework is based on a tutorial by [anantgarg.com](http://anantgarg.com/2009/03/13/write-your-own-php-mvc-framework-part-1/).
3+
This is a simple MVC framework written for personal needs while working on a small project. The framework is based on a tutorial by [anantgarg.com](http://anantgarg.com/2009/03/13/write-your-own-php-mvc-framework-part-1/).

core/basic.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Basic functionality
44
*
5-
* Core functions for including other source files, loading aditional classes and so forth
5+
* Core functions for including other source files, loading additional classes and so forth
66
*/
77

88
/**
@@ -27,7 +27,7 @@ function setReporting()
2727
/**
2828
* Main call function
2929
*
30-
* Analyze url request and calls requested controller function
30+
* Analyzes url requests and calls requested controller function
3131
*/
3232
function callHook()
3333
{
@@ -67,7 +67,7 @@ function callHook()
6767
*
6868
* Searches for the source file of requested class
6969
*
70-
* @param string $className Name of class which is to be loaded
70+
* @param string $className Name of class to be loaded
7171
*/
7272
function __autoload($className)
7373
{
@@ -83,4 +83,4 @@ function __autoload($className)
8383
}
8484

8585
setReporting();
86-
callHook();
86+
callHook();

core/bootstrap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
/**
33
* Basic functionality
44
*
5-
* Handles loading of core files needed on every request
5+
* Handles loading of core files on every request
66
*/
77
require_once(ROOT . DS . 'config' . DS . 'config.php');
88
require_once(ROOT . DS . 'config' . DS . 'routing.php');
9-
require_once(ROOT . DS . 'core' . DS . 'basic.php');
9+
require_once(ROOT . DS . 'core' . DS . 'basic.php');

core/controller.class.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Abstract controller
44
*
5-
* Abstraction class for controllers used in aplication
5+
* Abstraction class for controllers used in application
66
*/
77
abstract class Controller
88
{
@@ -22,13 +22,13 @@ abstract class Controller
2222
public $withoutHeader;
2323

2424
/**
25-
* Constructior function for Controller class
25+
* Constructor function for Controller class
2626
*
27-
* Constrcts new model and template class
27+
* Constructs new model and template class
2828
*
2929
* @param string $model Name of model class to be used
3030
* @param string $controller Name of controller class to be used
31-
* @param string $action Name of function which is to be executed
31+
* @param string $action Name of function to be executed
3232
*/
3333
function __construct($model, $controller, $action)
3434
{
@@ -43,7 +43,7 @@ function __construct($model, $controller, $action)
4343
}
4444

4545
/**
46-
* Passes variables to template class
46+
* Passes variables on to template class
4747
*
4848
* @param string $name Name of variable in template
4949
* @param mixed $value Value of given variable
@@ -62,4 +62,4 @@ function __destruct()
6262
{
6363
$this->_template->render($withoutHeader);
6464
}
65-
}
65+
}

core/sqlquery.class.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ abstract class SQLQuery {
1515
/**
1616
* Connect to a database
1717
*
18-
* Opens connection to a database specified by parameters
18+
* Opens connection to a database specified by the parameters
1919
*
2020
* @param string $host Database server address
2121
* @param string $user Database user
@@ -47,8 +47,8 @@ function disconnect()
4747
* Perform SQL query
4848
*
4949
* @param string $query SQL query which should be executed
50-
* @param array $param Optional parameteres for prepared statements
51-
* @return mixed Associative array containing query result(s), or false on error or empty result
50+
* @param array $param Optional parameters for prepared statements
51+
* @return mixed Associative array containing query result(s), or false in case of error, or empty result
5252
*/
5353
function query($query, $param = null)
5454
{
@@ -72,12 +72,12 @@ function query($query, $param = null)
7272
}
7373

7474
/**
75-
* Retrieve row with specific id
75+
* Retrieves row with specific id
7676
*
77-
* Retreives row with specific id from table specified by attached models name
77+
* Retreives row with specific id from table specified by attached model's name
7878
*
7979
* @param mixed $id Row id
80-
* @return array Associative array containg single result from table, or false on error
80+
* @return array Associative array containing single result from table, or false in case of error, or empty result
8181
*/
8282
function select($id)
8383
{
@@ -93,9 +93,9 @@ function select($id)
9393
/**
9494
* Retreives all rows from table
9595
*
96-
* Retrieves all rows from table specified by attached models name
96+
* Retrieves all rows from table specified by attached model's name
9797
*
98-
* @return array Associative array containg all table entries, or false on error
98+
* @return array Associative array containing all table entries, or false in case of error, or empty result
9999
*/
100100
function selectAll()
101101
{
@@ -120,4 +120,4 @@ function numRows()
120120

121121
return 0;
122122
}
123-
}
123+
}

public/.htaccess

100755100644
File mode changed.

public/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Request collector
44
*
5-
* This page is single entry point for all requests made by the application
5+
* This page is the single entry point for all requests made by the application
66
*/
77

88
/** directory separator string */
@@ -12,4 +12,4 @@
1212

1313
$url = isset($_GET['url']) == true ? $_GET['url'] : "";
1414

15-
require_once(ROOT . DS . 'core' . DS . 'bootstrap.php');
15+
require_once(ROOT . DS . 'core' . DS . 'bootstrap.php');

0 commit comments

Comments
 (0)