You are here

public static function RotatingBannerSlide::getByRotatingBanner in Rotating Banner 7

Same name and namespace in other branches
  1. 7.2 rotating_banner.classes.inc \RotatingBannerSlide::getByRotatingBanner()
2 calls to RotatingBannerSlide::getByRotatingBanner()
RotatingBanner::getSlides in ./rotating_banner.classes.inc
rotating_banner_block_configure in ./rotating_banner.module
Implements hook_block_configure().

File

./rotating_banner.classes.inc, line 121

Class

RotatingBannerSlide

Code

public static function getByRotatingBanner($rbid) {
  $result = db_select('rotating_banner_slides', 's')
    ->fields('s')
    ->condition('rbid', $rbid)
    ->orderBy('weight')
    ->execute()
    ->fetchAll(PDO::FETCH_CLASS, 'RotatingBannerSlide');
  SimpleActiveRecord::runInitialize($result);
  return $result;
}