Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit d6c4dbf

Browse files
Hugo Hamonfabpot
Hugo Hamon
authored andcommitted
[jobeet] fixed minor typos in chapters 10 and 15. It closes 3 trac tickets
1 parent 5406c3d commit d6c4dbf

File tree

7 files changed

+33
-22
lines changed

7 files changed

+33
-22
lines changed

jobeet/en/10.markdown

+15-16
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ from a form is as simple as unsetting them:
178178
<doctrine>
179179
// lib/form/doctrine/JobeetJobForm.class.php
180180
</doctrine>
181-
182181
class JobeetJobForm extends BaseJobeetJobForm
183182
{
184183
public function configure()
@@ -196,21 +195,21 @@ Instead of unsetting the fields you don't want to display, you can also
196195
explicitly list the fields you want by using the `useFields()` method:
197196

198197
[php]
199-
<propel>
200-
// lib/form/JobeetJobForm.class.php
201-
</propel>
202-
<doctrine>
203-
// lib/form/doctrine/JobeetJobForm.class.php
204-
</doctrine>
205-
class JobeetJobForm extends BaseJobeetJobForm
206-
{
207-
public function configure()
208-
{
209-
$this->useFields(array('category_id', 'type', 'company', 'logo',
210-
➥ 'url', 'position', 'location', 'description', 'how_to_apply',
211-
➥ 'token', 'is_public', 'email'));
212-
}
213-
}
198+
<propel>
199+
// lib/form/JobeetJobForm.class.php
200+
</propel>
201+
<doctrine>
202+
// lib/form/doctrine/JobeetJobForm.class.php
203+
</doctrine>
204+
class JobeetJobForm extends BaseJobeetJobForm
205+
{
206+
public function configure()
207+
{
208+
$this->useFields(array('category_id', 'type', 'company', 'logo',
209+
➥ 'url', 'position', 'location', 'description', 'how_to_apply',
210+
➥ 'token', 'is_public', 'email'));
211+
}
212+
}
214213

215214
The `useFields()` method does two things automatically for you: it adds the
216215
hidden fields and the array of fields is used to change the fields order.

jobeet/en/15.markdown

+3-1
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,10 @@ actual user applies for an account, the ~token|Token~ will need to be generated:
9696
{
9797
if (!$this->getToken())
9898
{
99-
$this->setToken(sha1($object->getEmail().rand(11111, 99999)));
99+
$this->setToken(sha1($this->getEmail().rand(11111, 99999)));
100100
}
101+
102+
return parent::save($conn);
101103
}
102104

103105
// ...

jobeet/es/15.markdown

+3-1
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ En el archivo de datos, los tokens están hardcodeados para simplificar las prue
8787
{
8888
if (!$this->getToken())
8989
{
90-
$this->setToken(sha1($object->getEmail().rand(11111, 99999)));
90+
$this->setToken(sha1($this->getEmail().rand(11111, 99999)));
9191
}
92+
93+
return parent::save($conn);
9294
}
9395

9496
// ...

jobeet/fr/15.markdown

+3-1
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,10 @@ généré :
9797
{
9898
if (!$this->getToken())
9999
{
100-
$this->setToken(sha1($object->getEmail().rand(11111, 99999)));
100+
$this->setToken(sha1($this->getEmail().rand(11111, 99999)));
101101
}
102+
103+
return parent::save($conn);
102104
}
103105

104106
// ...

jobeet/it/15.markdown

+3-1
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,10 @@ essere generato:
100100
{
101101
if (!$this->getToken())
102102
{
103-
$this->setToken(sha1($object->getEmail().rand(11111, 99999)));
103+
$this->setToken(sha1($this->getEmail().rand(11111, 99999)));
104104
}
105+
106+
return parent::save($conn);
105107
}
106108

107109
// ...

jobeet/ja/15.markdown

+3-1
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,10 @@ Jobeet のフィード追加に関して、求職者はリアルタイムで新
8585
{
8686
if (!$this->getToken())
8787
{
88-
$this->setToken(sha1($object->getEmail().rand(11111, 99999)));
88+
$this->setToken(sha1($this->getEmail().rand(11111, 99999)));
8989
}
90+
91+
return parent::save($conn);
9092
}
9193

9294
// ...

jobeet/ru/15.markdown

+3-1
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,10 @@
120120
{
121121
if (!$this->getToken())
122122
{
123-
$this->setToken(sha1($object->getEmail().rand(11111, 99999)));
123+
$this->setToken(sha1($this->getEmail().rand(11111, 99999)));
124124
}
125+
126+
return parent::save($conn);
125127
}
126128

127129
// ...

0 commit comments

Comments
 (0)