Skip to content

Commit 010ee54

Browse files
committed
debug : abstract methods added in traits
1 parent a07245f commit 010ee54

File tree

9 files changed

+26
-11
lines changed

9 files changed

+26
-11
lines changed

Ajax/common/Widget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ abstract class Widget extends HtmlDoubleElement {
2525
*/
2626
protected $_instanceViewer;
2727
/**
28-
* @var boolean
28+
* @var HtmlMenu
2929
*/
3030
protected $_toolbar;
3131
/**

Ajax/common/components/SimpleComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ abstract class SimpleComponent extends BaseComponent {
1515
protected $uiName;
1616
protected $events;
1717

18-
public function __construct(JsUtils $js) {
18+
public function __construct(JsUtils $js=NULL) {
1919
parent::__construct($js);
2020
$this->events=array ();
2121
}

Ajax/common/html/html5/HtmlLinkTrait.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
trait HtmlLinkTrait {
66

7+
abstract public function setProperty($name,$value);
8+
abstract public function getProperty($name);
9+
710
public function setHref($value) {
811
$this->setProperty("href", $value);
912
}

Ajax/semantic/components/SimpleSemExtComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class SimpleSemExtComponent extends SimpleExtComponent {
99
protected $paramParts;
10-
public function __construct(JsUtils $js) {
10+
public function __construct(JsUtils $js=NULL) {
1111
parent::__construct($js);
1212
$this->paramParts=array();
1313
}

Ajax/semantic/html/base/traits/AttachedTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
use Ajax\semantic\html\base\HtmlSemDoubleElement;
77

88
trait AttachedTrait {
9-
9+
abstract public function addToPropertyCtrl($name, $value, $typeCtrl);
1010
/**
1111
* @param HtmlSemDoubleElement $toElement
1212
* @param string $side
1313
* @return \Ajax\semantic\html\base\HtmlSemDoubleElement
1414
*/
15-
public function setAttachment($toElement, $value=Side::BOTH) {
15+
public function setAttachment($toElement, $side=Side::BOTH) {
1616
if (isset($toElement)) {
1717
$toElement->addToPropertyCtrl("class", "attached", array ("attached" ));
1818
}
19-
return $this->addToPropertyCtrl("class", $value . " attached", Side::getConstantValues("attached"));
19+
return $this->addToPropertyCtrl("class", $side . " attached", Side::getConstantValues("attached"));
2020
}
2121
}

Ajax/semantic/html/base/traits/BaseTrait.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,19 @@ trait BaseTrait {
1616
protected $_states=[ ];
1717
protected $_baseClass;
1818

19-
protected abstract function setPropertyCtrl($name, $value, $typeCtrl);
19+
abstract protected function setPropertyCtrl($name, $value, $typeCtrl);
2020

21-
protected abstract function addToPropertyCtrl($name, $value, $typeCtrl);
21+
abstract protected function addToPropertyCtrl($name, $value, $typeCtrl);
2222

23-
protected abstract function addToPropertyCtrlCheck($name, $value, $typeCtrl);
23+
abstract protected function addToPropertyCtrlCheck($name, $value, $typeCtrl);
2424

25-
public abstract function addToProperty($name, $value, $separator=" ");
25+
abstract public function addToProperty($name, $value, $separator=" ");
2626

27-
public abstract function setProperty($name, $value);
27+
abstract public function setProperty($name, $value);
28+
29+
abstract public function addContent($content,$before=false);
30+
31+
abstract public function onCreate($jsCode);
2832

2933
public function addVariation($variation) {
3034
return $this->addToPropertyCtrlCheck("class", $variation, $this->_variations);

Ajax/semantic/html/base/traits/LabeledIconTrait.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
*/
1313
trait LabeledIconTrait {
1414

15+
abstract public function addToProperty($name, $value, $separator=" ");
16+
abstract public function addContent($content,$before=false);
17+
1518
/**
1619
* Adds an icon before or after
1720
* @param string|HtmlIcon $icon

Ajax/semantic/html/base/traits/MenuItemTrait.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
* @property string $tagName
1414
*/
1515
trait MenuItemTrait {
16+
abstract public function addToProperty($name, $value, $separator=" ");
17+
abstract public function setClass($classNames);
18+
abstract public function addIcon($icon, $before=true);
1619

1720
public function setContent($content){
1821
if($content==="-"){

Ajax/semantic/html/base/traits/TextAlignmentTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
trait TextAlignmentTrait {
88

9+
abstract public function addToPropertyCtrl($name, $value, $typeCtrl);
10+
911
/**
1012
* @param string $value
1113
* @return \Ajax\semantic\html\base\HtmlSemDoubleElement

0 commit comments

Comments
 (0)