Lines Matching refs:notice
82 public function addNotice($notice){
88 $array[strtolower($notice->getId())] = $this->noticeboardId;
92 if(!array_key_exists($notice->getId(),$array)){
93 $array[strtolower($notice->getId())] = $this->noticeboardId;
98 if (!@file_exists($file)){//make new file, insert one notice
99 $this->list->add($notice);
105 if($notice->getId() == $next->getId()){
107 $array[$this->list->getPointer()-1] = $notice;
115 $this->list->add($notice);
126 if (@file_exists($fileNoticeboards)){//delete from notice list
133 if (@file_exists($file)){//delete notice
171 $notice = $arrayGet[$i];
172 if($notice->getDeadline() >= $startTime && $notice->getDeadline() < $endTime){
173 $notice->setHasStartTime(false);
174 echo $notice->hasStartTime();
175 array_push($array, $notice);
177 }else if($notice->getStartTime() >= $startTime && $notice->getStartTime() < $endTime){
179 array_push($array, $notice);
180 }else if($notice->getEndTime() >= $startTime && $notice->getEndTime() < $endTime){
182 $notice->setHasStartTime(0);
183 array_push($array, $notice);
184 }else if(($notice->getHasEnd() && $notice->getEndTime() > $startTime)&& $notice->getStartTime() < $startTime ){
186 $notice->setHasStartTime(0);
187 array_push($array, $notice);
250 $notice = $array[$i];
251 if($notice->getStartTime() < $currentTime + 86400){ // all day
252 array_push($returnArray, $notice);
258 $notice = $array[$i];
259 if($notice->getStartTime() >= $currentTime){ // all day
260 array_push($returnArray, $notice);
275 $notice = $array[$i];
278 if($notice->getCategory() == 'meeting'){
279 array_push($returnArray, $notice);
284 if($notice->getCategory() == 'event'){
285 array_push($returnArray, $notice);
290 if($notice->getCategory() == 'conference'){
291 array_push($returnArray, $notice);
317 $notice = $this->getNoticeById(key($sortArray));
319 $returnArray[$j] = $notice;
334 $notice = $this->getNoticeById(key($sortArray));
336 $returnArray[$j] = $notice;
349 $notice = $this->getNoticeById(key($sortArray));
351 $returnArray[$j] = $notice;
364 $notice = $this->getNoticeById(key($sortArray));
366 $returnArray[$j] = $notice;
392 $notice = $item;
396 return $notice;