@@ -57,8 +57,7 @@ discard block |
||
| 57 | 57 | * Associate an ajax get to the breadcrumb elements, displayed in $targetSelector |
| 58 | 58 | * $attr member is used to build each element url |
| 59 | 59 | * @param string $targetSelector the target of the get |
| 60 | - * @param string $attr the html attribute used to build the elements url |
|
| 61 | - * @return HtmlBreadcrumbs |
|
| 60 | + * @return HtmlBreadcrumb |
|
| 62 | 61 | */ |
| 63 | 62 | public function autoGetOnClick($targetSelector){ |
| 64 | 63 | return $this->getOnClick($this->root, $targetSelector,array("attr"=>$this->attr)); |
@@ -83,7 +82,7 @@ discard block |
||
| 83 | 82 | /** |
| 84 | 83 | * Add new elements in breadcrumbs corresponding to request dispatcher : controllerName, actionName, parameters |
| 85 | 84 | * @param Dispatcher $dispatcher the request dispatcher |
| 86 | - * @return \Ajax\bootstrap\html\HtmlBreadcrumbs |
|
| 85 | + * @return HtmlBreadcrumb |
|
| 87 | 86 | */ |
| 88 | 87 | public function fromDispatcher($dispatcher,$startIndex=0){ |
| 89 | 88 | $this->startIndex=$startIndex; |
@@ -120,7 +119,7 @@ discard block |
||
| 120 | 119 | /** |
| 121 | 120 | * sets the function who generates the href elements. default : function($element){return $element->getContent()} |
| 122 | 121 | * @param function $_hrefFunction |
| 123 | - * @return \Ajax\bootstrap\html\HtmlBreadcrumbs |
|
| 122 | + * @return HtmlBreadcrumb |
|
| 124 | 123 | */ |
| 125 | 124 | public function setHrefFunction($_hrefFunction) { |
| 126 | 125 | $this->_hrefFunction = $_hrefFunction; |
@@ -22,6 +22,9 @@ discard block |
||
| 22 | 22 | private $_colSize; |
| 23 | 23 | private $_implicite=false; |
| 24 | 24 | |
| 25 | + /** |
|
| 26 | + * @param string $identifier |
|
| 27 | + */ |
|
| 25 | 28 | public function __construct( $identifier,$numCols=NULL,$colSizing=false,$implicite=false){ |
| 26 | 29 | parent::__construct( $identifier,"div","row"); |
| 27 | 30 | $this->_implicite=$implicite; |
@@ -55,7 +58,7 @@ discard block |
||
| 55 | 58 | /** |
| 56 | 59 | * return the col at $index |
| 57 | 60 | * @param int $index |
| 58 | - * @return \Ajax\semantic\html\collections\HtmlGridCol |
|
| 61 | + * @return \Ajax\common\html\HtmlDoubleElement |
|
| 59 | 62 | */ |
| 60 | 63 | public function getCol($index){ |
| 61 | 64 | return $this->getItem($index); |
@@ -10,6 +10,9 @@ discard block |
||
| 10 | 10 | class HtmlList extends HtmlSemCollection{ |
| 11 | 11 | protected $_hasCheckedList; |
| 12 | 12 | |
| 13 | + /** |
|
| 14 | + * @param string $identifier |
|
| 15 | + */ |
|
| 13 | 16 | public function __construct( $identifier, $items=array()){ |
| 14 | 17 | parent::__construct( $identifier, "div", "ui list"); |
| 15 | 18 | $this->addItems($items); |
@@ -27,6 +30,9 @@ discard block |
||
| 27 | 30 | return $item; |
| 28 | 31 | } |
| 29 | 32 | |
| 33 | + /** |
|
| 34 | + * @param integer $niveau |
|
| 35 | + */ |
|
| 30 | 36 | public function addHeader($niveau,$content){ |
| 31 | 37 | return $this->wrap(new HtmlHeader("header-".$this->identifier,$niveau,$content,"page")); |
| 32 | 38 | } |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | /** |
| 32 | 32 | * Sets the menu type |
| 33 | 33 | * @param string $type one of text,item |
| 34 | - * @return \Ajax\semantic\html\collections\HtmlMenu |
|
| 34 | + * @return HtmlMenu |
|
| 35 | 35 | */ |
| 36 | 36 | public function setType($type=""){ |
| 37 | 37 | return $this->addToPropertyCtrl("class", $type, array("","item","text")); |
@@ -73,6 +73,7 @@ discard block |
||
| 73 | 73 | /** |
| 74 | 74 | * {@inheritDoc} |
| 75 | 75 | * @see \Ajax\common\html\HtmlCollection::insertItem() |
| 76 | + * @param HtmlIcon $item |
|
| 76 | 77 | */ |
| 77 | 78 | public function insertItem($item,$position=0){ |
| 78 | 79 | $item=parent::insertItem($this->getItemToInsert($item),$position); |
@@ -84,6 +84,9 @@ discard block |
||
| 84 | 84 | return $this; |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | + /** |
|
| 88 | + * @param integer $index |
|
| 89 | + */ |
|
| 87 | 90 | public function removeItem($index){ |
| 88 | 91 | return array_splice($this->content, $index, 1); |
| 89 | 92 | } |
@@ -99,6 +102,9 @@ discard block |
||
| 99 | 102 | return $this->addItem($function($object)); |
| 100 | 103 | } |
| 101 | 104 | |
| 105 | + /** |
|
| 106 | + * @param \Closure $callBack |
|
| 107 | + */ |
|
| 102 | 108 | public function apply($callBack){ |
| 103 | 109 | foreach ($this->content as $item){ |
| 104 | 110 | $callBack($item); |
@@ -20,6 +20,9 @@ |
||
| 20 | 20 | protected $_tabsType="tabs"; |
| 21 | 21 | protected $stacked=""; |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @param string $identifier |
|
| 25 | + */ |
|
| 23 | 26 | public function __construct($identifier, $tagName="ul") { |
| 24 | 27 | parent::__construct($identifier, $tagName); |
| 25 | 28 | $this->_template="<%tagName% %properties%>%tabs%</%tagName%>%content%"; |
@@ -4,6 +4,9 @@ |
||
| 4 | 4 | |
| 5 | 5 | trait HtmlLinkTrait { |
| 6 | 6 | |
| 7 | + /** |
|
| 8 | + * @param string $value |
|
| 9 | + */ |
|
| 7 | 10 | public function setHref($value) { |
| 8 | 11 | $this->setProperty("href", $value); |
| 9 | 12 | } |
@@ -23,8 +23,6 @@ |
||
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * @param string $identifier |
| 26 | - * @param int $rowCount |
|
| 27 | - * @param int $colCount |
|
| 28 | 26 | */ |
| 29 | 27 | public function htmlRating($identifier, $value, $max,$icon=""){ |
| 30 | 28 | return $this->addHtmlComponent(new HtmlRating($identifier, $value, $max,$icon)); |
@@ -6,6 +6,9 @@ |
||
| 6 | 6 | |
| 7 | 7 | trait CheckboxTrait { |
| 8 | 8 | |
| 9 | + /** |
|
| 10 | + * @param string $name |
|
| 11 | + */ |
|
| 9 | 12 | public abstract function addToPropertyCtrl($name, $value, $typeCtrl); |
| 10 | 13 | |
| 11 | 14 | public function setType($checkboxType) { |