\DataView
Synopsis
class DataView
extends ViewableData
{
- // members
- private static $view_name = NULL;
- // methods
- public static bool isObsolete()
- public static void ViewName()
- public static DataQuery|SQLQuery|SQLSelect|DataList|string getViewStatement()
Hierarchy
Extends
- ViewableData
Members
private
-
$view_name
The view name which should be created in the database. Leave null if you want to automatically take the name from your DataView class name.
Methods
public
- ViewName()
- getViewStatement()
- isObsolete() — If your view gets obsolete and you have already stopped using it everywhere, you can override this method in your old view class and make it return true. When views are updated using the UpdateDatabaseViewsTask, all views whose isAbandoned() method returns false will get dropped from the database automatically.