feed class

This commit is contained in:
2019-02-28 22:29:09 +01:00
parent 70489bd680
commit 2edba945c9
5 changed files with 142 additions and 114 deletions

View File

@@ -113,9 +113,17 @@ class Project extends PhpObject {
return $bSpecificProj?$asProject:$asProjects;
}
public function getFeedIds() {
return $this->oDb->selectColumn(
Feed::FEED_TABLE,
Db::getId(Feed::FEED_TABLE),
array(Db::getId(self::PROJ_TABLE) => $this->getProjectId())
);
}
private function setProjectInfo() {
if($this->iProjectId > 0) {
$asProject = $this->getProjects($this->iProjectId);
if($this->getProjectId() > 0) {
$asProject = $this->getProjects($this->getProjectId());
$this->sMode = $asProject['mode'];
$this->asActive = array('from'=>$asProject['active_from'], 'to'=>$asProject['active_to']);