mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Fixed order in entry/update, fixed a lot of codestyle
This commit is contained in:
@@ -191,11 +191,21 @@ class FeedItem
|
||||
return $this->updated_on;
|
||||
}
|
||||
|
||||
/**
|
||||
* Marks this item as the last added.
|
||||
*/
|
||||
public function setLastInFeedItem()
|
||||
{
|
||||
$this->setOrd($this->getEntry()->getItems()->count() + 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the record_adapter associated to this FeedItem.
|
||||
*
|
||||
* @param Application $app
|
||||
*
|
||||
* @return \record_adapter
|
||||
*/
|
||||
public function getRecord(Application $app)
|
||||
{
|
||||
return new \record_adapter($app, $this->getSbasId(), $this->getRecordId(), $this->getOrd());
|
||||
|
Reference in New Issue
Block a user