This is an old revision of the document!
Table of Contents
ExportController
Layer: Controller · Source: lib/controller/ExportController.php:26 (lines 26–212)
class ExportController extends BaseApp
ExportController
Controller for handling export operations from admin panel
Docblock Metadata
^ Tag ^ Value ^ | ''@category'' | Controller Class | | ''@author'' | M.Noermoehammad | | ''@license'' | MIT | | ''@version'' | 1.0 | | ''@since'' | Since Release 1.0 |
Inheritance
^ Relation ^ Type ^ Meaning ^ | extends | [[scriptlog:lib:core:baseapp|''BaseApp'']] | parent class/interface |
Constants (0)
None.
Properties (2)
^ Visibility ^ Type ^ Name ^ Default ^ Line ^ | ''private'' | ''(untyped)'' | ''$error'' | ''[];'' | 31 | | ''private'' | ''(untyped)'' | ''$success'' | ''[];'' | 32 |
Methods (9)
^ Visibility ^ Method ^ Summary ^ Line ^ | public | ''__construct()'' | ExportController constructor. | 39 | | protected | ''listItems()'' | List items - not used for export | 49 | | public | ''insert()'' | Insert - not used for export | 59 | | public | ''update()'' | Update - not used for export | 70 | | public | ''remove()'' | Remove - not used for export | 81 | | public | ''index()'' | Render export page | 91 | | public | ''export()'' | Handle export request | 113 | | protected | ''setView()'' | Set view | 194 | | private | ''getCurrentAuthorId()'' | Get current author ID from session | 204 |
__construct()
public function __construct(ExportService $exportService)
lines 39–42 (4)
ExportController constructor.
^ Parameter ^ Type ^ Default ^ Description ^ | ''$exportService'' | [[scriptlog:lib:service:exportservice|''ExportService'']] | //required// | Business logic for export operations |
listItems()
protected function listItems()
lines 49–52 (4)
List items - not used for export
Takes no parameters.
Returns: (none declared) — string
insert()
public function insert()
lines 59–62 (4)
Insert - not used for export
Takes no parameters.
Returns: (none declared) — string
update()
public function update($id = null)
lines 70–73 (4)
Update - not used for export
^ Parameter ^ Type ^ Default ^ Description ^ | ''$id'' | ''(untyped)'' | ''null'' | //none// |
Returns: (none declared) — string
remove()
public function remove($id = null)
lines 81–84 (4)
Remove - not used for export
^ Parameter ^ Type ^ Default ^ Description ^ | ''$id'' | ''(untyped)'' | ''null'' | //none// |
Returns: (none declared) — string
index()
public function index()
lines 91–106 (16)
Render export page
Takes no parameters.
Returns: (none declared) — string
export()
public function export()
lines 113–187 (75)
Handle export request
Takes no parameters.
Returns: (none declared) — string
setView()
protected function setView($_viewName)
lines 194–197 (4)
Set view
^ Parameter ^ Type ^ Default ^ Description ^ | ''$_viewName'' | ''(untyped)'' | //required// | //none// |
Returns: (none declared)
getCurrentAuthorId()
private function getCurrentAuthorId()
lines 204–211 (8)
Get current author ID from session
Takes no parameters.
Returns: (none declared) — int
Imports
^ Alias ^ Fully-qualified name ^ | ''BaseApp'' | [[scriptlog:lib:core:baseapp|''Scriptlog\Core\BaseApp'']] | | ''Session'' | [[scriptlog:lib:core:session|''Scriptlog\Core\Session'']] | | ''View'' | [[scriptlog:lib:core:view|''Scriptlog\Core\View'']] | | ''ExportService'' | [[scriptlog:lib:service:exportservice|''Scriptlog\Service\ExportService'']] |
This page is generated from source by 'tools/gendoc'. Edits will be overwritten.
