Пример #1
0
 public function filterByPackage(Package $package)
 {
     $this->query->andWhere('pkgID = :pkgID');
     $this->query->setParameter('pkgID', $package->getPackageID());
 }
Пример #2
0
 public static function getListByPackage(\Concrete\Core\Entity\Package $pkg)
 {
     $workflows = array();
     $db = Loader::db();
     $r = $db->Execute("select wfID from Workflows where pkgID = ? order by wfName asc", [$pkg->getPackageID()]);
     while ($row = $r->FetchRow()) {
         $wf = static::getByID($row['wfID']);
         if (is_object($wf)) {
             $workflows[] = $wf;
         }
     }
     return $workflows;
 }