phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
BaseWidget.php
Go to the documentation of this file.
1<?php
2
3namespace Ajax\common\html;
4
6
12#[\AllowDynamicProperties()]
13abstract class BaseWidget {
14 protected $identifier;
15 protected $_identifier;
16 protected $_libraryId;
17 protected $_self;
18
19 public function __construct($identifier) {
20 $this->identifier=$this->cleanIdentifier($identifier);
21 $this->_identifier=$this->identifier;
22 $this->_self=$this;
23 }
24
25 public function getIdentifier() {
26 return $this->identifier;
27 }
28
29 public function setIdentifier($identifier) {
30 $this->identifier=$this->cleanIdentifier($identifier);
31 return $this;
32 }
33
34 protected function cleanIdentifier($id) {
35 return JString::cleanIdentifier($id);
36 }
40 public function getLibraryId() {
41 if( isset($this->_libraryId)){
42 return $this->_libraryId;
43 }
44 return $this->identifier;
45 }
46
50 public function setLibraryId($_libraryId) {
51 $this->_libraryId = $_libraryId;
52 }
53
54}
BaseWidget for Twitter Bootstrap, jQuery UI or Semantic rich components.