Ejemplo n.º 1
0
 /**
  * Quick get all records into a associative array
  *
  * @author Erik A. Ortiz <erik@colosa.com, aortiz.erik@gmail.com>
  */
 public function getAllByDynUid($DYN_UID, $filter = 'all')
 {
     $aRows = array();
     $oCriteria = $this->getAllCriteriaByDynUid($DYN_UID, $filter);
     $oDataset = FieldConditionPeer::doSelectRS($oCriteria);
     $oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
     $oDataset->next();
     while ($aRow = $oDataset->getRow()) {
         $aRows[] = $aRow;
         $oDataset->next();
     }
     return $aRows;
 }
 /**
  * Method to do selects.
  *
  * @param      Criteria $criteria The Criteria object used to build the SELECT statement.
  * @param      Connection $con
  * @return     array Array of selected Objects
  * @throws     PropelException Any exceptions caught during processing will be
  *       rethrown wrapped into a PropelException.
  */
 public static function doSelect(Criteria $criteria, $con = null)
 {
     return FieldConditionPeer::populateObjects(FieldConditionPeer::doSelectRS($criteria, $con));
 }
Ejemplo n.º 3
0
    /**

     * Gets the Field Conditions from a process and returns those in an array.

     *

     * @param $sProUid string for the process Uid

     * @return $aFieldCondition array

     */



    public function getFieldCondition ($sProUid)

    {

        try {

            $aFieldCondition = array ();

            $oCriteria = new Criteria( 'workflow' );

            $oCriteria->add( DynaformPeer::PRO_UID, $sProUid );

            $oCriteria->addJoin( DynaformPeer::DYN_UID, FieldConditionPeer::FCD_DYN_UID );

            $oDataset = FieldConditionPeer::doSelectRS( $oCriteria );

            $oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );

            $oDataset->next();

            while ($aRow = $oDataset->getRow()) {

                $aFieldCondition[] = $aRow;

                $oDataset->next();

            }

            return $aFieldCondition;

        } catch (Exception $oError) {

            throw ($oError);

        }

    }