Todo List
database_object | --Flag
This handles flagging of songs, albums and artists
[line 36]
[line 33]
[line 35]
[line 34]
[line 29]
[line 39]
[line 31]
[line 32]
[line 40]
[line 30]
static void add( $id, $type, $flag, $comment)
This adds a flag entry for an item, it takes an id, a type, the flag type and a comment and then inserts the mofo
static void build_cache( $ids)
This takes an array of ids and builds up a nice little cache for us
static void fill_tags( $tagWriter, $song, [ $type = 'comment'])
static void get_all( [ $count = 0])
This returns an array of ids of flagged songs if no limit is passed it gets everything
static void get_approved( )
This returns an array of approved flagged songs
static void get_disabled( )
This returns all of the songs that have been disabled, this is a form of being flagged
static void get_recent( [ $count = 0])
This returns the id's of the most recently flagged songs, it takes an int as an argument which is the count of the object you want to return
static void validate_flag( $flag)
This takes a flag input and makes sure it's one of the reigstered and valid 'flag' values
Flag __construct( $flag_id)
This takes a flagged.id and then pulls in the information for said flag entry
void approve( )
This approves the current flag object ($this->id) by setting approved to 1
void delete( )
This deletes the flagged entry and rescans the file to revert to the origional state, in a perfect world, I could just roll the changes back... not until 3.4 or.. haha 3.5!
void format( )
This function figures out what kind of object we've got and sets up all the vars all nice and fuzzy like
void print_flag( )
This prints out a userfriendly version of the current flag type
void print_status( )
This prints out a userfriendly version of the current status for this flagged object