Skip to content

Commit 8377dd0

Browse files
committed
Minor changes while doing documentation
1 parent d7cc093 commit 8377dd0

File tree

1,379 files changed

+25
-113915
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,379 files changed

+25
-113915
lines changed

src/controllers/Core_BaseController.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ class Core_BaseController extends Controller {
99

1010
protected $github;
1111

12+
protected $pageTitle;
13+
1214
/**
1315
* Create a new Controller instance.
1416
* Assigns the active user
@@ -258,11 +260,10 @@ public static function arrayToSelect($array, $key, $value, $first)
258260
return CoreView::arrayToSelect($array, $key, $value, $first);
259261
}
260262

261-
public function getArray($class, $message)
263+
public function getSelectArray($class, $message = null)
262264
{
263-
$objects = $class::orderByNameAsc()->get();
264-
$objectArray = $this->arrayToSelect($objects, 'id', 'name', $message);
265+
$objects = $class::orderByNameAsc()->get()->toSelectArray($message);
265266

266-
return $objectArray;
267+
return $objects;
267268
}
268269
}

src/models/Core_BaseModel.php

Lines changed: 0 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -160,87 +160,4 @@ public static function testClassForUniqueId($class)
160160

161161
return false;
162162
}
163-
164-
public function getForumTypes()
165-
{
166-
$class = get_called_class();
167-
168-
switch ($class) {
169-
case 'Forum_Post':
170-
case 'Syntax\Core\Forum_Post':
171-
return Forum_Post_Type::orderByNameAsc()->get();
172-
break;
173-
case 'Forum_Reply':
174-
case 'Syntax\Core\Forum_Reply':
175-
return Forum_Reply_Type::orderByNameAsc()->get();
176-
break;
177-
}
178-
}
179-
180-
public function setModeration($reason)
181-
{
182-
if ($this instanceof Forum_Post || $this instanceof Forum_Reply) {
183-
// Set this as locked for moderation
184-
$this->moderatorLockedFlag = 1;
185-
$this->save();
186-
187-
// Create the moderation record
188-
$report = new Forum_Moderation;
189-
$report->resource_type = get_called_class();
190-
$report->resource_id = $this->id;
191-
$report->user_id = Auth::user()->id;
192-
$report->reason = $reason;
193-
194-
$report->save();
195-
}
196-
}
197-
198-
public function unsetModeration($moderationId)
199-
{
200-
if ($this instanceof Forum_Post || $this instanceof Forum_Reply) {
201-
$this->moderatorLockedFlag = 0;
202-
$this->save();
203-
204-
// Create the moderation log
205-
$moderationLog = new Forum_Moderation_Log;
206-
$moderationLog->forum_moderation_id = $moderationId;
207-
$moderationLog->user_id = Auth::user()->id;
208-
$moderationLog->action = Forum_Moderation::REMOVE_REPORT;
209-
210-
$moderationLog->save();
211-
}
212-
}
213-
214-
public function setAdminReview($moderationId)
215-
{
216-
if ($this instanceof Forum_Post || $this instanceof Forum_Reply) {
217-
// Set the object for admin review
218-
$this->adminReviewFlag = 1;
219-
$this->save();
220-
221-
// Create the moderation log
222-
$moderationLog = new Forum_Moderation_Log;
223-
$moderationLog->forum_moderation_id = $moderationId;
224-
$moderationLog->user_id = Auth::user()->id;
225-
$moderationLog->action = Forum_Moderation::ADMIN_REVIEW;
226-
227-
$moderationLog->save();
228-
}
229-
}
230-
231-
public function adminDeletePost($moderationId)
232-
{
233-
if ($this instanceof Forum_Post || $this instanceof Forum_Reply) {
234-
// Delete the object
235-
$this->delete();
236-
237-
// Create the moderation log
238-
$moderationLog = new Forum_Moderation_Log;
239-
$moderationLog->forum_moderation_id = $moderationId;
240-
$moderationLog->user_id = Auth::user()->id;
241-
$moderationLog->action = Forum_Moderation::DELETE_POST;
242-
243-
$moderationLog->save();
244-
}
245-
}
246163
}

src/node/node_modules/.bin/gulp

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/node/node_modules/gulp-autoprefixer/.npmignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/node/node_modules/gulp-autoprefixer/LICENSE

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/node/node_modules/gulp-autoprefixer/README.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/node/node_modules/gulp-autoprefixer/index.js

Lines changed: 0 additions & 58 deletions
This file was deleted.

src/node/node_modules/gulp-autoprefixer/node_modules/.bin/autoprefixer

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)