mirror of
https://github.com/typemill/typemill.git
synced 2025-08-19 04:12:08 +02:00
latest 20171218
This commit is contained in:
25
system/Events/BaseEvent.php
Normal file
25
system/Events/BaseEvent.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Typemill\Events;
|
||||
|
||||
use Symfony\Component\EventDispatcher\Event;
|
||||
|
||||
class BaseEvent extends Event
|
||||
{
|
||||
protected $data;
|
||||
|
||||
public function __construct($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
}
|
14
system/Events/LoadBreadcrumbEvent.php
Normal file
14
system/Events/LoadBreadcrumbEvent.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Typemill\Events;
|
||||
|
||||
use Symfony\Component\EventDispatcher\Event;
|
||||
|
||||
/**
|
||||
* Event for breadcrumb.
|
||||
*/
|
||||
|
||||
class LoadBreadcrumbEvent extends BaseEvent
|
||||
{
|
||||
|
||||
}
|
14
system/Events/LoadItemEvent.php
Normal file
14
system/Events/LoadItemEvent.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Typemill\Events;
|
||||
|
||||
use Symfony\Component\EventDispatcher\Event;
|
||||
|
||||
/**
|
||||
* Event for item.
|
||||
*/
|
||||
|
||||
class LoadItemEvent extends BaseEvent
|
||||
{
|
||||
|
||||
}
|
@@ -5,25 +5,10 @@ namespace Typemill\Events;
|
||||
use Symfony\Component\EventDispatcher\Event;
|
||||
|
||||
/**
|
||||
* Event for the pure content.
|
||||
* Event for markdown.
|
||||
*/
|
||||
|
||||
class LoadMarkdownEvent extends Event
|
||||
class LoadMarkdownEvent extends BaseEvent
|
||||
{
|
||||
protected $data;
|
||||
|
||||
public function __construct($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
}
|
@@ -5,25 +5,10 @@ namespace Typemill\Events;
|
||||
use Symfony\Component\EventDispatcher\Event;
|
||||
|
||||
/**
|
||||
* Event for the folder structure.
|
||||
* Event for the page tree.
|
||||
*/
|
||||
|
||||
class LoadPagetreeEvent extends Event
|
||||
class LoadPagetreeEvent extends BaseEvent
|
||||
{
|
||||
protected $data;
|
||||
|
||||
public function __construct($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
}
|
14
system/Events/LoadPluginsEvent.php
Normal file
14
system/Events/LoadPluginsEvent.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Typemill\Events;
|
||||
|
||||
use Symfony\Component\EventDispatcher\Event;
|
||||
|
||||
/**
|
||||
* Event for the folder structure.
|
||||
*/
|
||||
|
||||
class LoadPluginsEvent extends BaseEvent
|
||||
{
|
||||
|
||||
}
|
14
system/Events/LoadSettingsEvent.php
Normal file
14
system/Events/LoadSettingsEvent.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Typemill\Events;
|
||||
|
||||
use Symfony\Component\EventDispatcher\Event;
|
||||
|
||||
/**
|
||||
* Event for settings
|
||||
*/
|
||||
|
||||
class LoadSettingsEvent extends BaseEvent
|
||||
{
|
||||
|
||||
}
|
@@ -5,25 +5,10 @@ namespace Typemill\Events;
|
||||
use Symfony\Component\EventDispatcher\Event;
|
||||
|
||||
/**
|
||||
* Event for the pure content.
|
||||
* Event for html page.
|
||||
*/
|
||||
|
||||
class ParseHtmlEvent extends Event
|
||||
class ParseHtmlEvent extends BaseEvent
|
||||
{
|
||||
protected $data;
|
||||
|
||||
public function __construct($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
}
|
@@ -5,25 +5,10 @@ namespace Typemill\Events;
|
||||
use Symfony\Component\EventDispatcher\Event;
|
||||
|
||||
/**
|
||||
* Event for the pure content.
|
||||
* Event for the page rendering data.
|
||||
*/
|
||||
|
||||
class RenderPageEvent extends Event
|
||||
class RenderPageEvent extends BaseEvent
|
||||
{
|
||||
protected $data;
|
||||
|
||||
public function __construct($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user