82 Commits

Author SHA1 Message Date
Justin Page
f8e785be16 Fixed grammar error to indicate possession of sentence. 2014-03-05 18:09:03 -08:00
Jakukyo Friel
9bca711909 higher order functions
Functions using functions as input and/or output are higher order functions.
2013-12-07 20:12:02 +08:00
Ryan Koven
67df3eb54e Remove an extraneous 'to'; rectify an instance of an incorrect verb tense; small adjust to punctuation.
Original text noted that it's "usually a good idea to follow to common patterns". Removed extra 'to'. 

In MVC section the sentence "The model-view-controller (MVC) pattern... let..." should be changed to "The model-view-controller (MVC) pattern...lets..."

Also added a semicolon to a sentence in the Factory section that Strunk and White would agree enhances the clarity of the sentence.
2013-12-03 13:45:16 -08:00
Matt Kirwan
8991c3f013 Made the following changes: Removed class, standardised property names to camel case and switched method names. 2013-08-05 16:23:28 +01:00
Matt Kirwan
eda4616331 Added the strategy pattern to the Design Patterns page 2013-07-25 23:04:40 +01:00
Simon R Jones
4d2fcc80e7 Adding () after static keyword to make it clearer this is instantiating a new object 2013-05-31 15:43:46 +01:00
Simon R Jones
dc059e9858 Removing back-slash from global functions for consistency with print_r() in factory example and since it's unecessary 2013-05-31 15:42:16 +01:00
Phil Sturgeon
4be17cec52 Closes #251: Conditional arguments or Conditional statements 2013-04-12 12:17:27 -04:00
Florian Wolters
78b8adc015 Enhanced the example for the Singleton design pattern.
- Moved static variable into the static creation method getInstance.
- Replaced "new self();" with "new static" (late static binding to allow
subclassing).
- Changed visibility of __construct to protected.
- Added the two private methods __clone and __wakeup.
- Added DocBlock comments.
- Updated description and enhanced with links to the PHP manual.
2013-03-13 16:21:22 +01:00
Florian Wolters
7d91e9cd07 Removed trailing whitespaces. 2013-03-13 15:52:19 +01:00
David Joos
ba77b5918f Fixed typo: it > is 2013-02-11 09:55:29 +00:00
Corey McMahon
8d5ab66099 Added a sentence defining the benefit or using DI over the singleton pattern 2013-01-14 15:28:25 +11:00
Corey McMahon
7850ebd5e4 Added singleton pattern to the Design-Patterns page 2013-01-09 17:59:24 +11:00
Phil Sturgeon
3a79e14a36 Typo 2013-01-03 11:23:35 -05:00
Leif Arne Storset
3cbb0ba996 Clarify global-namespace explanation
I had trouble understanding this passage, but a peek in the documentation
explained it.  It's not about "execution" – the execution of the function is
unaffected – it's about name resolution. And it's also not really about
"definition".

While I was at it, I renamed "method" to function, as these are not methods and
methods aren't really affected by namespaces (they're already namespaced by a
class). Also copyedited a bit.
2012-12-11 21:50:13 +01:00
Ryan McAllen
50ef1b10bd Fixed misspelling 2012-12-04 13:20:18 -05:00
coderabbi
854d87a110 Edited for Grammar & Style 2012-10-29 17:33:15 -03:00
Tom de Bruin
c95fc4250e It's true, it will return 'yay'. 2012-10-12 09:13:43 +01:00
Tom de Bruin
724a5bb9b8 Changed example return values
At request of Phil Sturgeon.
2012-10-12 09:09:21 +01:00
Tom de Bruin
2be210a687 Corrected ternary operator syntax 2012-10-11 05:17:06 +01:00
andrea
f731160ded Fixed maruku warning: Unclosed span (waiting for ["*"]) 2012-08-20 15:02:13 +02:00
Nick Adams
876ec7515d Grammar/Spelling corrections 2012-08-11 17:04:28 +12:00
TAKAGI Masahiro
44de4d3b44 Remove single quotes from heredoc identifier 2012-08-11 07:01:01 +09:00
=
26628985dd Tweak perf example in The Basics 2012-08-10 13:42:40 -04:00
Nick Adams
3a02de8d8f Added "The Basics" section 2012-08-11 03:08:19 +12:00
Sydney Arikan
003071c6b7 changed the grammar used to define Factory pattern 2012-07-27 14:05:24 +03:00
Josh Lockhart
85a6d3b1de Merge pull request #115 from stevenbenner/gh-pages
Added application design patterns section
2012-07-23 04:51:18 -07:00
Steven Benner
2cb5960c43 Added Design Patterns page. 2012-07-20 11:38:00 -07:00
Goran Rakic
de6fb719d5 Copy new paragraph by @jeremeamia from main page to content page 2012-07-20 02:40:04 +03:00
Goran Rakic
13bfa8f88d Add page title 2012-07-20 02:38:29 +03:00
Goran Rakic
0e59502501 Move to a separate topic page 2012-07-20 02:38:29 +03:00
=
7e284d8d7b Add page layout
Include example page
2012-07-14 12:04:55 -04:00