src/Common/Service/AppSetting.php
public function delete($mKey, $sGrouping)
    {
        $oDb = Factory::service('Database');
        $oDb->trans_begin();

        if (is_array($mKey)) {

            foreach ($mKey as $sKey) {
                $this->doDelete($sKey, $sGrouping);
            }

        } else {

            $this->doDelete($mKey, $sGrouping);
        }

        if ($oDb->trans_status() === false) {

            $oDb->trans_rollback();

            return false;

        } else {

            $oDb->trans_commit();

            return true;
        }
    }
public function delete($mKey, $sGrouping)
    {
        $oDb = Factory::service('Database');
        $oDb->trans_begin();

        if (is_array($mKey)) {

            foreach ($mKey as $sKey) {
                $this->doDelete($sKey, $sGrouping);
            }

        } else {

            $this->doDelete($mKey, $sGrouping);
        }

        if ($oDb->trans_status() === false) {

            $oDb->trans_rollback();

            return false;

        } else {

            $oDb->trans_commit();

            return true;
        }
    }
public function delete ( $ mKey , $ sGrouping ) { $ oDb = Factory :: service ( 'Database' ) ; $ oDb -> trans_begin ( ) ; if ( is_array ( $ mKey ) ) { foreach ( $ mKey as $ sKey ) { $ this -> doDelete ( $ sKey , $ sGrouping ) ; } } else { $ this -> doDelete ( $ mKey , $ sGrouping ) ; } if ( $ oDb -> trans_status ( ) === false ) { $ oDb -> trans_rollback ( ) ; return false ; } else { $ oDb -> trans_commit ( ) ; return true ; } }
Deletes a key for a particular group

@param mixed  $mKey      The key to delete
@param string $sGrouping The key's grouping

@return bool
Deletes a key for a particular group