From f9ca3577f5018a5adc287d84a45f525c8a2926a4 Mon Sep 17 00:00:00 2001 From: Tom Janssens Date: Tue, 28 Apr 2015 13:22:08 +0200 Subject: [PATCH] #152 - Initial commit --- .../admin/component/links/controller/link.php | 15 ++ .../links/controller/permission/link.php | 15 ++ .../admin/component/links/view/link/html.php | 29 +++ .../view/link/templates/default.html.php | 50 ++++++ .../component/links/view/links/metadata.xml | 6 + .../view/links/templates/default.html.php | 66 +++++++ .../links/view/links/templates/default.xml | 8 + .../component/links/controller/Crawler.php | 155 ++++++++++++++++ .../component/links/controller/link.php | 151 ++++++++++++++++ .../links/controller/permission/link.php | 15 ++ .../links/controller/toolbar/link.php | 41 +++++ .../component/links/view/link/html.php | 29 +++ .../view/link/templates/default.html.php | 50 ++++++ .../component/links/view/links/metadata.xml | 6 + .../view/links/templates/default.html.php | 72 ++++++++ .../links/view/links/templates/default.xml | 8 + component/links/database/table/links.php | 26 +++ component/links/database/table/relations.php | 23 +++ component/links/model/links.php | 64 +++++++ component/links/model/relations.php | 55 ++++++ .../2015/20150427091313_AddComLinks.php | 166 ++++++++++++++++++ 21 files changed, 1050 insertions(+) create mode 100644 application/admin/component/links/controller/link.php create mode 100644 application/admin/component/links/controller/permission/link.php create mode 100644 application/admin/component/links/view/link/html.php create mode 100644 application/admin/component/links/view/link/templates/default.html.php create mode 100644 application/admin/component/links/view/links/metadata.xml create mode 100644 application/admin/component/links/view/links/templates/default.html.php create mode 100644 application/admin/component/links/view/links/templates/default.xml create mode 100644 application/manager/component/links/controller/Crawler.php create mode 100644 application/manager/component/links/controller/link.php create mode 100644 application/manager/component/links/controller/permission/link.php create mode 100644 application/manager/component/links/controller/toolbar/link.php create mode 100644 application/manager/component/links/view/link/html.php create mode 100644 application/manager/component/links/view/link/templates/default.html.php create mode 100644 application/manager/component/links/view/links/metadata.xml create mode 100644 application/manager/component/links/view/links/templates/default.html.php create mode 100644 application/manager/component/links/view/links/templates/default.xml create mode 100644 component/links/database/table/links.php create mode 100644 component/links/database/table/relations.php create mode 100644 component/links/model/links.php create mode 100644 component/links/model/relations.php create mode 100644 scripts/phpmig/migrations/2015/20150427091313_AddComLinks.php diff --git a/application/admin/component/links/controller/link.php b/application/admin/component/links/controller/link.php new file mode 100644 index 00000000..db6fd795 --- /dev/null +++ b/application/admin/component/links/controller/link.php @@ -0,0 +1,15 @@ + + * @link https://github.com/belgianpolice/internet-platform + */ + +use Nooku\Library; + +class LinksControllerLink extends Library\ControllerModel +{ + +} \ No newline at end of file diff --git a/application/admin/component/links/controller/permission/link.php b/application/admin/component/links/controller/permission/link.php new file mode 100644 index 00000000..2f4f4e2c --- /dev/null +++ b/application/admin/component/links/controller/permission/link.php @@ -0,0 +1,15 @@ + + * @link https://github.com/belgianpolice/internet-platform + */ + +use Nooku\Library; + +class LinksControllerPermissionLink extends ApplicationControllerPermissionAbstract +{ + +} \ No newline at end of file diff --git a/application/admin/component/links/view/link/html.php b/application/admin/component/links/view/link/html.php new file mode 100644 index 00000000..5b296f6f --- /dev/null +++ b/application/admin/component/links/view/link/html.php @@ -0,0 +1,29 @@ + + * @link https://github.com/belgianpolice/internet-platform + */ + +use Nooku\Library; + +/** + * Articles HTML View + * + * @author Tom Janssens + * @package Component\Articles + */ +class LinksViewLinkHtml extends Library\ViewHtml +{ + public function render() + { + $model = $this->getModel(); + $link = $model->getRow(); + + $this->childs = $this->getObject('com:links.model.relations')->links_link_id($link->id)->getRowset(); + + return parent::render(); + } +} \ No newline at end of file diff --git a/application/admin/component/links/view/link/templates/default.html.php b/application/admin/component/links/view/link/templates/default.html.php new file mode 100644 index 00000000..7bca730e --- /dev/null +++ b/application/admin/component/links/view/link/templates/default.html.php @@ -0,0 +1,50 @@ + + * @link https://github.com/belgianpolice/internet-platform + */ +?> + +