Skip to content

Commit 8e87843

Browse files
committed
removed remaining references to factory(), replaced them by forge()
1 parent ce97e94 commit 8e87843

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

classes/file/advanced.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ <h4 id="area_config">Configuration</h4>
6969
<p>
7070
By default file areas have unlimited access through all directories. There are two ways to set
7171
these configuration values. The quickest way is to pass an array intro the
72-
File::factory method.
72+
File::forge() method.
7373
</p>
7474

7575
<pre class="php"><code>$config = array(
@@ -83,7 +83,7 @@ <h4 id="area_config">Configuration</h4>
8383
A more centralized way is by defining an area (or more) inside you File config file. To do so,
8484
copy <em>core/config/file.php</em> into <em>app/config/file.php</em> (or create a new one) and
8585
define your area inside the <em>'areas'</em> array. Now you can get the area by supplying the
86-
string identifier to the File::factory method.
86+
string identifier to the File::forge() method.
8787
</p>
8888

8989
<pre class="php"><code>// inside app/config/file.php

classes/file/handlers.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ <h3 id="file_handler">File handler</h3>
115115
</p>
116116

117117
<article>
118-
<h4 class="method" id="method_file_factory">factory($path, $config = array(), $area = null, $content = array())</h4>
119-
<p>The <strong>factory</strong> method returns a new File_Handler_File object.</p>
118+
<h4 class="method" id="method_file_forge">forge($path, $config = array(), $area = null, $content = array())</h4>
119+
<p>The <strong>forge</strong> method returns a new File_Handler_File object.</p>
120120
<table class="method">
121121
<tbody>
122122
<tr>
@@ -524,8 +524,8 @@ <h2 id="directory_handler">Directory handler</h2>
524524
</p>
525525

526526
<article>
527-
<h4 class="method" id="method_directory_factory" data-class="File_Handler_Directory">factory($path, $config = array(), $area = null, $content = array())</h4>
528-
<p>The <strong>factory</strong> method returns a new File_Handler_Directory object.</p>
527+
<h4 class="method" id="method_directory_forge" data-class="File_Handler_Directory">forge($path, $config = array(), $area = null, $content = array())</h4>
528+
<p>The <strong>forge</strong> method returns a new File_Handler_Directory object.</p>
529529
<table class="method">
530530
<tbody>
531531
<tr>

classes/ftp.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ <h3 id="configuration">Configuration</h3>
123123

124124

125125
<article>
126-
<h4 class="method" id="method_factory">factory()</h4>
127-
<p>The <strong>factory</strong> method is used to create a new instance of the FTP class and can either reference a different config group
126+
<h4 class="method" id="method_forge">forge()</h4>
127+
<p>The <strong>forge</strong> method is used to create a new instance of the FTP class and can either reference a different config group
128128
or be passed an array of <a href="config.html">configuration options</a>.</p>
129129
<table class="method">
130130
<tbody>

general/viewmodels.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ <h4 id="changing_view">Changing the view</h4>
159159

160160
<h4>Using ViewModels from other namespaces or not View_ prefixed</h4>
161161

162-
<p>If you want to use these, you have to use the full classname with the <code>factory()</code>, including the namespace.
162+
<p>If you want to use these, you have to use the full classname with the <code>forge()</code>, including the namespace.
163163
In these cases, the default naming will often not work as expected so setting the <code>$_view</code>
164164
property is encouraged.</p>
165165
</article>

packages/orm/crud.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ <h2>Create</h2>
6464
$new->property = 'something';
6565
$new->save();
6666

67-
// option 2, use factory instead of new
67+
// option 2, use forge instead of new
6868
$new = Model_Example::forge();</code></pre>
6969

7070
<p class="note">After <kbd>save()</kbd> the model has been saved to the database and if you're using an
@@ -79,7 +79,7 @@ <h2>Create</h2>
7979
$new = new Model_Example($props);
8080
$new->save();
8181

82-
// option 2, use factory instead of new
82+
// option 2, use forge instead of new
8383
$new = Model_Example::forge($props)->save();</code></pre>
8484
</article>
8585

0 commit comments

Comments
 (0)