This allows you to easily get a nice formatted string that is chock full of data. Pass it a string with % delimited markers in it and it will generate stats: Supports: %f - file count %a - album count %c - category count %v - view count %n - comment count (number of notes added) %% - Escapes a percent sign. For example: $objCpm->cpm_formatStats("Here is a percent sign %% There are %f files in %c categories containing %a albums, having served %v views and getting %n comments"); Outputs: Here is a percent sign % There are 366 files in 8 categories containing 27 albums, having served 243 views and getting 0 comments
This gets the total number of media items in the CPG database and returns based on the returntype.
This prints the total number of media items in the CPG database limited by the $source definition