Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
StudipNews Class Reference
Inheritance diagram for StudipNews:
Inheritance graph
Collaboration diagram for StudipNews:
Collaboration graph

Public Member Functions

 __construct ($id=null)
 restore ()
 restoreRanges ()
 store ()
 storeRanges ()
 getRanges ()
 issetRange ($range_id)
 addRange ($range_id)
 deleteRange ($range_id)
 setData ($data, $reset=false)
 delete ()
- Public Member Functions inherited from SimpleORMap
 setId ($id)
 getId ()
 getNewId ()
 getData ()
 toArray ()
 getValue ($field)
 setValue ($field, $value)
 __get ($field)
 __set ($field, $value)
 __isset ($field)
 offsetExists ($offset)
 offsetGet ($offset)
 offsetSet ($offset, $value)
 offsetUnset ($offset)
 getIterator ()
 count ()
 isField ($field)
 haveData ()
 isNew ()
 setNew ($is_new)
 getWhereQuery ()
 triggerChdate ()

Static Public Member Functions

static GetNewsByRange ($range_id, $only_visible=false, $as_objects=false)
static GetNewsByAuthor ($user_id, $as_objects=false)
static GetNewsByRSSId ($rss_id, $as_objects=false)
static GetNewsObjects ($news_result)
static GetUserIdFromRssID ($rss_id)
static GetRssIdFromUserId ($user_id)
static GetRangeFromRssID ($rss_id)
static GetRangeIdFromRssID ($rss_id)
static GetRssIdFromRangeId ($range_id)
static SetRssId ($range_id, $type=false)
static UnsetRssId ($range_id)
static GetAdminMsg ($user_id, $date)
static DoGarbageCollect ()
static TouchNews ($news_id, $touch_stamp=null)
static DeleteNewsRanges ($range_id)
static DeleteNewsByAuthor ($user_id)
static find ($id)
static findBySql ($where)
static deleteBySql ($where)
- Static Public Member Functions inherited from SimpleORMap
static expireTableScheme ()
static find ($class, $id)
static findBySQL ($class, $where)
static deleteBySQL ($class, $where)

Data Fields

 $ranges = array()

Additional Inherited Members

- Protected Member Functions inherited from SimpleORMap
 getTableScheme ()
- Static Protected Member Functions inherited from SimpleORMap
static TableScheme ($db_table)
- Protected Attributes inherited from SimpleORMap
 $content = array()
 $is_new = true
 $db_table = ''
 $db_fields = null
 $pk = null
- Static Protected Attributes inherited from SimpleORMap
static $schemes

Detailed Description

StudipNews.class.php

Author
André Noack <noack-quest>, Suchi & Berg GmbH info@.nosp@m.data.nosp@m.-ques.nosp@m.t.de public

Constructor & Destructor Documentation

__construct (   $id = null)
Parameters
string$idprimary key of table

Reimplemented from SimpleORMap.

Member Function Documentation

addRange (   $range_id)

Here is the call graph for this function:

delete ( )

delete entry from database the object is cleared and turned to new state

Returns
boolean

Reimplemented from SimpleORMap.

Here is the call graph for this function:

Here is the caller graph for this function:

static deleteBySql (   $where)
static
static DeleteNewsByAuthor (   $user_id)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static DeleteNewsRanges (   $range_id)
static

Here is the call graph for this function:

Here is the caller graph for this function:

deleteRange (   $range_id)

Here is the call graph for this function:

static DoGarbageCollect ( )
static

Here is the call graph for this function:

Here is the caller graph for this function:

static find (   $id)
static
static findBySql (   $where)
static
static GetAdminMsg (   $user_id,
  $date 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static GetNewsByAuthor (   $user_id,
  $as_objects = false 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static GetNewsByRange (   $range_id,
  $only_visible = false,
  $as_objects = false 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static GetNewsByRSSId (   $rss_id,
  $as_objects = false 
)
static

Here is the call graph for this function:

static GetNewsObjects (   $news_result)
static

Here is the caller graph for this function:

static GetRangeFromRssID (   $rss_id)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static GetRangeIdFromRssID (   $rss_id)
static

Here is the call graph for this function:

Here is the caller graph for this function:

getRanges ( )

Here is the caller graph for this function:

static GetRssIdFromRangeId (   $range_id)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static GetRssIdFromUserId (   $user_id)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static GetUserIdFromRssID (   $rss_id)
static

Here is the call graph for this function:

issetRange (   $range_id)

Here is the caller graph for this function:

restore ( )

restore entry from database

Returns
boolean

Reimplemented from SimpleORMap.

Here is the call graph for this function:

restoreRanges ( )

Here is the call graph for this function:

Here is the caller graph for this function:

setData (   $data,
  $reset = false 
)

set multiple column values if second param is set, existing data in object will be discarded, else new data overrides old data

Parameters
array$dataassoc array
boolean$reset
Returns
number of columns changed

Reimplemented from SimpleORMap.

Here is the call graph for this function:

static SetRssId (   $range_id,
  $type = false 
)
static

Here is the call graph for this function:

store ( )

store entry in database if data is actually changed triggerChdate() is called

Returns
number|boolean

Reimplemented from SimpleORMap.

Here is the call graph for this function:

storeRanges ( )

Here is the call graph for this function:

Here is the caller graph for this function:

static TouchNews (   $news_id,
  $touch_stamp = null 
)
static

Here is the caller graph for this function:

static UnsetRssId (   $range_id)
static

Here is the call graph for this function:

Here is the caller graph for this function:

Field Documentation

$ranges = array()

The documentation for this class was generated from the following file: