Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
41 | 2 | 0 | 1.000 | class_member_list[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 41 | 77 | administrator/components/com_templates/models/cssedit.php |
2 | 41 | 69 | administrator/components/com_templates/models/source.php |
| ||||
/** * Method to set the Template identifier * * @access public * @param int Template identifier */ function setId($id) { // Set Template id and wipe data require_once JPATH_COMPONENT . DS . 'helpers' . DS . 'template.php'; $this->_id = $id; $this->_template = TemplatesHelper::getTemplateName($id); $this->_data = NULL; } /** * Method to get a Template * * @since 1.6 */ function &getData() { // Load the data if (!$this->_loadData()) $this->_initData(); return $this->_data; } /** * Method to get the client object * * @since 1.6 */ function &getClient() { return $this->_client; } function &getTemplate() { return $this->_template; } function &getId() { return $this->_id; } |
| ||||
/** * Method to set the Template identifier * * @access public * @param int Template identifier */ function setId($id) { // Set Template id and wipe data require_once JPATH_COMPONENT . DS . 'helpers' . DS . 'template.php'; $this->_id = $id; $this->_template = TemplatesHelper::getTemplateName($id); $this->_data = NULL; } /** * Method to get a Template * * @since 1.6 */ function &getData() { // Load the data if (!$this->_loadData()) $this->_initData(); return $this->_data; } /** * Method to get the client object * * @since 1.6 */ function &getClient() { return $this->_client; } function &getTemplate() { return $this->_template; } function &getId() { return $this->_id; } |
| |||
/** * Method to set the Template identifier * * @access public * @param int Template identifier */ function setId($id) { // Set Template id and wipe data require_once JPATH_COMPONENT . DS . 'helpers' . DS . 'template.php'; $this->_id =$id; $this->_template =TemplatesHelper::getTemplateName($id); $this->_data =NULL; } /** * Method to get a Template * * @since 1.6 */ function &getData() { // Load the data if (!$this->_loadData()) $this->_initData(); return $this->_data; } /** * Method to get the client object * * @since 1.6 */ function &getClient() { return $this->_client; } function &getTemplate() { return $this->_template; } function &getId() { return $this->_id; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |