public function getUncachedThumbsClipsList($limit, $plugin = 'video') { $example = new OW_Example(); $example->andFieldIsNull('thumbUrl'); $example->andFieldEqual('plugin', $plugin); $example->andFieldNotEqual('provider', 'undefined'); $example->setOrder('`thumbCheckStamp` ASC'); $example->setLimitClause(0, $limit); return $this->findListByExample($example); }
/** * Returns document object for provided controller and action. * * @param string $controller * @param string $action * @return BOL_Document */ public function findDocumentByDispatchAttrs($controller, $action) { $example = new OW_Example(); $example->andFieldEqual(self::CLAS_S, $controller); if ($action === null) { $example->andFieldIsNull(self::ACTION); } else { $example->andFieldEqual(self::ACTION, $action); } return $this->findObjectByExample($example); }
public function findUncategorized() { $example = new OW_Example(); $example->andFieldIsNull('categoryId'); return $this->findIdListByExample($example); }