- added new map scopes to map dialog, which affect system (jump) trackintg
- moved system (jump) tracking from client (js) to backend (php) - improved system (jump) tracking performance (reduced update timings by 40%) - improved map data caching - updated jQuery custom content scroller 3.0.9 -> 3.1.13 - updated "manual dialog" content - increased "manual dialog"
This commit is contained in:
@@ -78,10 +78,12 @@ abstract class BasicModel extends \DB\Cortex {
|
||||
|
||||
// events -----------------------------------------
|
||||
$this->afterinsert(function($self){
|
||||
$self->afterinsertEvent($self);
|
||||
$self->clearCacheData();
|
||||
});
|
||||
|
||||
$this->afterupdate( function($self){
|
||||
$self->afterupdateEvent($self);
|
||||
$self->clearCacheData();
|
||||
});
|
||||
|
||||
@@ -317,7 +319,6 @@ abstract class BasicModel extends \DB\Cortex {
|
||||
if( $f3->exists($cacheKey) ){
|
||||
$f3->clear($cacheKey);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -360,7 +361,7 @@ abstract class BasicModel extends \DB\Cortex {
|
||||
}
|
||||
|
||||
/**
|
||||
* checks weather this model is active or not
|
||||
* checks whether this model is active or not
|
||||
* each model should have an "active" column
|
||||
* @return bool
|
||||
*/
|
||||
@@ -413,6 +414,24 @@ abstract class BasicModel extends \DB\Cortex {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Event "Hook" function
|
||||
* can be overwritten
|
||||
* return false will stop any further action
|
||||
*/
|
||||
public function afterinsertEvent(){
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Event "Hook" function
|
||||
* can be overwritten
|
||||
* return false will stop any further action
|
||||
*/
|
||||
public function afterupdateEvent(){
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Event "Hook" function
|
||||
* can be overwritten
|
||||
|
||||
Reference in New Issue
Block a user