Advertisement
Guest User

IPS 4: Comment Example

a guest
Dec 10th, 2013
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.41 KB | None | 0 0
  1. <?php
  2.  
  3. namespace IPS\downloads\File;
  4.  
  5. /**
  6.  * File Comment Model
  7.  */
  8. class _Comment extends \IPS\Content\Comment implements \IPS\Content\EditHistory, \IPS\Content\ReportCenter, \IPS\Content\Hideable, \IPS\Content\Reputation
  9. {
  10.     /**
  11.      * @brief   [ActiveRecord] Multiton Store
  12.      */
  13.     protected static $multitons;
  14.    
  15.     /**
  16.      * @brief   Default Values
  17.      */
  18.     protected static $defaultValues = NULL;
  19.    
  20.     /**
  21.      * @brief   [Content\Comment]   Item Class
  22.      */
  23.     public static $itemClass = 'IPS\downloads\File';
  24.    
  25.     /**
  26.      * @brief   [ActiveRecord] Database Table
  27.      */
  28.     public static $databaseTable = 'downloads_comments';
  29.    
  30.     /**
  31.      * @brief   [ActiveRecord] Database Prefix
  32.      */
  33.     public static $databasePrefix = 'comment_';
  34.    
  35.     /**
  36.      * @brief   Database Column Map
  37.      */
  38.     public static $databaseColumnMap = array(
  39.         'item'              => 'fid',
  40.         'author'            => 'mid',
  41.         'author_name'       => 'author',
  42.         'content'           => 'text',
  43.         'date'              => 'date',
  44.         'ip_address'        => 'ip_address',
  45.         'edit_time'         => 'edit_time',
  46.         'edit_member_name'  => 'edit_name',
  47.         'edit_show'         => 'append_edit',
  48.         'approved'          => 'open'
  49.     );
  50.    
  51.     /**
  52.      * @brief   Application
  53.      */
  54.     public static $application = 'downloads';
  55.    
  56.     /**
  57.      * @brief   Title
  58.      */
  59.     public static $title = 'downloads_file_comment';
  60.    
  61.     /**
  62.      * @brief   Icon
  63.      */
  64.     public static $icon = 'download';
  65.    
  66.     /**
  67.      * @brief   Reputation Type
  68.      */
  69.     public static $reputationType = 'comment_id';
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement