public function addEditTracking()
    {
//        Old code
//        $changer = new \MUtil_Model_Type_ChangeTracker($this, 1, 0);
//
//        $changer->apply('gto_valid_from_manual',  'gto_valid_from');
//        $changer->apply('gto_valid_until_manual', 'gto_valid_until');

        $this->addDependency(new OffOnElementsDependency('gto_valid_from_manual',  'gto_valid_from', 'readonly', $this));
        $this->addDependency(new OffOnElementsDependency('gto_valid_until_manual', 'gto_valid_until', 'readonly', $this));

        $this->set('gto_valid_until', 'validators[dateAfter]',
              new \MUtil_Validate_Date_DateAfter('gto_valid_from')
              );

        return $this;
    }
public function addEditTracking()
    {
//        Old code
//        $changer = new \MUtil_Model_Type_ChangeTracker($this, 1, 0);
//
//        $changer->apply('gto_valid_from_manual',  'gto_valid_from');
//        $changer->apply('gto_valid_until_manual', 'gto_valid_until');

        $this->addDependency(new OffOnElementsDependency('gto_valid_from_manual',  'gto_valid_from', 'readonly', $this));
        $this->addDependency(new OffOnElementsDependency('gto_valid_until_manual', 'gto_valid_until', 'readonly', $this));

        $this->set('gto_valid_until', 'validators[dateAfter]',
              new \MUtil_Validate_Date_DateAfter('gto_valid_from')
              );

        return $this;
    }
public function addEditTracking ( ) { //        Old code //        $changer = new \MUtil_Model_Type_ChangeTracker($this, 1, 0); // //        $changer->apply('gto_valid_from_manual',  'gto_valid_from'); //        $changer->apply('gto_valid_until_manual', 'gto_valid_until'); $ this -> addDependency ( new OffOnElementsDependency ( 'gto_valid_from_manual' , 'gto_valid_from' , 'readonly' , $ this ) ) ; $ this -> addDependency ( new OffOnElementsDependency ( 'gto_valid_until_manual' , 'gto_valid_until' , 'readonly' , $ this ) ) ; $ this -> set ( 'gto_valid_until' , 'validators[dateAfter]' , new \ MUtil_Validate_Date_DateAfter ( 'gto_valid_from' ) ) ; return $ this ; }
Add tracking off manual date changes by the user

@param mixed $value The value to store when the tracked field has changed
@return \Gems_Tracker_Model_StandardTokenModel
Add tracking off manual date changes by the user