Skip to content

Commit

Permalink
PSR-4 namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
hamidpeywasti committed Sep 22, 2017
1 parent b20ef2f commit f06ca94
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
/**
* Namespace
*/
namespace Respinar\Marquee;
namespace Respinar\Marquee\Frontend\Element;

use Respinar\Marquee\Model\MarqueeModel;
use Respinar\Marquee\Model\MarqueeTextModel;


/**
Expand Down Expand Up @@ -47,7 +50,7 @@ public function generate()

$objTemplate->wildcard = '### ' . utf8_strtoupper($GLOBALS['TL_LANG']['FMD']['marquee'][0]) . ' ###';

$objMarquee = \MarqueeModel::findBy('id',$this->marquee);
$objMarquee = MarqueeModel::findBy('id',$this->marquee);

$objTemplate->title = $this->headline;
$objTemplate->id = $this->marquee;
Expand Down Expand Up @@ -94,7 +97,7 @@ protected function compile()
if(isset($this->numberOfItem) && $this->numberOfItem>0)
$optns["limit"]=$this->numberOfItem;

$objMarqueeTexts = \MarqueeTextModel::findPublishedByPid($this->marquee,$optns);
$objMarqueeTexts = MarqueeTextModel::findPublishedByPid($this->marquee,$optns);

$arrMarqueeTexts = array();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
/**
* Namespace
*/
namespace Respinar\Marquee;
namespace Respinar\Marquee\Frontend\Module;

use Respinar\Marquee\Model\MarqueeModel;
use Respinar\Marquee\Model\MarqueeTextModel;

/**
* Class ModuleMarquee
Expand Down Expand Up @@ -91,7 +93,7 @@ protected function compile()
if(isset($this->numberOfItem) && $this->numberOfItem>0)
$optns["limit"]=$this->numberOfItem;

$objMarqueeTexts = \MarqueeTextModel::findPublishedByPid($this->marquee,$optns);
$objMarqueeTexts = MarqueeTextModel::findPublishedByPid($this->marquee,$optns);

$arrMarqueeTexts = array();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* Run in a custom namespace, so the class can be replaced
*/
namespace Respinar\Marquee;
namespace Respinar\Marquee\Model;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* Run in a custom namespace, so the class can be replaced
*/
namespace Respinar\Marquee;
namespace Respinar\Marquee\Model;


/**
Expand Down

0 comments on commit f06ca94

Please sign in to comment.