phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
HtmlStepItem.php
Go to the documentation of this file.
1 <?php
2 
4 
7 
9 
10  public function __construct($identifier, $content) {
11  parent::__construct($identifier,"step",$content);
12  }
13  protected function initContent($content){
14  if(\is_array($content)){
15  $icon=JArray::getValue($content, "icon", 0);
16  $title=JArray::getValue($content, "title", 1);
17  $desc=JArray::getValue($content, "description", 2);
18  $status=JArray::getValue($content, "status", 3);
19  if(isset($icon)){
20  $this->setIcon($icon);
21  }
22  if(isset($status)){
23  $this->setStatus($status);
24  }
25  if(isset($title)){
26  $this->setTitle($title,$desc);
27  }
28  }else{
29  $this->setContent($content);
30  }
31  }
32 
33  public function setActive($value=true){
34  if($value)
36  else
38  return $this;
39  }
40 
41  public function setCompleted(){
43  return $this->setStatus(StepStatus::COMPLETED);
44  }
45 
46  public function setStatus($status){
47  return $this->addToPropertyCtrl("class", $status, StepStatus::getConstants());
48  }
49 
50  public function removeStatus(){
52  }
53 }
static getValue($array, $key, $pos)
Definition: JArray.php:10
static getConstants()
Definition: BaseEnum.php:17
setTitle($title, $description=NULL, $baseClass="title")
addToPropertyCtrl($name, $value, $typeCtrl)