concrete/src/Page/Collection/Version/Version.php
public function deny()
    {
        $app = Facade::getFacadeApplication();
        $db = $app->make('database')->connection();
        $cvID = $this->cvID;
        $cID = $this->cID;

        // first we update a collection updated record
        $dh = $app->make('helper/date');
        $db->executeQuery('update Collections set cDateModified = ? where cID = ?', array(
            $dh->getOverridableNow(),
            $cID,
        ));

        // first we remove approval for all versions of this collection
        $v = array(
            $cID,
        );
        $q = "update CollectionVersions set cvIsApproved = 0 where cID = ?";
        $db->executeQuery($q, $v);
        $this->cvIsApproved = 0;

        // now we deny our version
        $v2 = array(
            $cID,
            $cvID,
        );
        $q2 = "update CollectionVersions set cvIsApproved = 0, cvApproverUID = 0 where cID = ? and cvID = ?";
        $db->executeQuery($q2, $v2);
        $this->refreshCache();
    }
public function deny()
    {
        $app = Facade::getFacadeApplication();
        $db = $app->make('database')->connection();
        $cvID = $this->cvID;
        $cID = $this->cID;

        // first we update a collection updated record
        $dh = $app->make('helper/date');
        $db->executeQuery('update Collections set cDateModified = ? where cID = ?', array(
            $dh->getOverridableNow(),
            $cID,
        ));

        // first we remove approval for all versions of this collection
        $v = array(
            $cID,
        );
        $q = "update CollectionVersions set cvIsApproved = 0 where cID = ?";
        $db->executeQuery($q, $v);
        $this->cvIsApproved = 0;

        // now we deny our version
        $v2 = array(
            $cID,
            $cvID,
        );
        $q2 = "update CollectionVersions set cvIsApproved = 0, cvApproverUID = 0 where cID = ? and cvID = ?";
        $db->executeQuery($q2, $v2);
        $this->refreshCache();
    }
public function deny ( ) { $ app = Facade :: getFacadeApplication ( ) ; $ db = $ app -> make ( 'database' ) -> connection ( ) ; $ cvID = $ this -> cvID ; $ cID = $ this -> cID ; // first we update a collection updated record $ dh = $ app -> make ( 'helper/date' ) ; $ db -> executeQuery ( 'update Collections set cDateModified = ? where cID = ?' , array ( $ dh -> getOverridableNow ( ) , $ cID , ) ) ; // first we remove approval for all versions of this collection $ v = array ( $ cID , ) ; $ q = "update CollectionVersions set cvIsApproved = 0 where cID = ?" ; $ db -> executeQuery ( $ q , $ v ) ; $ this -> cvIsApproved = 0 ; // now we deny our version $ v2 = array ( $ cID , $ cvID , ) ; $ q2 = "update CollectionVersions set cvIsApproved = 0, cvApproverUID = 0 where cID = ? and cvID = ?" ; $ db -> executeQuery ( $ q2 , $ v2 ) ; $ this -> refreshCache ( ) ; }
Mark this collection version as not approved.
Mark this collection version as not approved .