File modules/cms/action/profile/ProfileHistoryAction.class.php

Last commit: Sat Oct 17 02:16:28 2026 +0200	Jan Dankert	Refactoring: Removed empty view() and post() methods; OpenAPI cleanup, removed these unused paths.
1 <?php 2 namespace cms\action\profile; 3 use cms\action\Method; 4 use cms\action\ProfileAction; 5 use cms\model\BaseObject; 6 7 class ProfileHistoryAction extends ProfileAction implements Method { 8 public function view() { 9 $lastChanges = $this->user->getLastChanges( time()-(60*60*24*365*1) ); 10 11 $timeline = array(); 12 13 foreach( $lastChanges as $entry ) 14 { 15 $timeline[ $entry['objectid'] ] = $entry; 16 $baseObject = new BaseObject( $entry['objectid']); 17 $baseObject->objectLoad(); 18 $timeline[ $entry['objectid'] ]['type'] = $baseObject->getType(); 19 } 20 $this->setTemplateVar('timeline', $timeline); 21 } 22 23 24 25 }
Download modules/cms/action/profile/ProfileHistoryAction.class.php
History Sat, 17 Oct 2026 02:16:28 +0200 Jan Dankert Refactoring: Removed empty view() and post() methods; OpenAPI cleanup, removed these unused paths. Sun, 5 Jan 2025 23:14:07 +0100 Jan Dankert New UI feature: Show a timeline in the start page. Tue, 17 Nov 2020 23:51:00 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class.