CloneSet510


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
41201.000class_member_list[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14177
administrator/components/com_templates/models/cssedit.php
24169
administrator/components/com_templates/models/source.php
Clone Instance
1
Line Count
41
Source Line
77
Source File
administrator/components/com_templates/models/cssedit.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;
              }


Clone Instance
2
Line Count
41
Source Line
69
Source File
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;
              }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None