chore(legacy): format code
This commit is contained in:
parent
da52f495b4
commit
63d9e430e1
33 changed files with 111 additions and 102 deletions
|
@ -15,9 +15,9 @@ class CcBlock extends BaseCcBlock
|
|||
* @param string $format The date/time format string (either date()-style or strftime()-style).
|
||||
* If format is NULL, then the raw DateTime object will be returned.
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*
|
||||
* @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*/
|
||||
public function getDbUtime($format = 'Y-m-d H:i:s')
|
||||
{
|
||||
|
@ -48,9 +48,9 @@ class CcBlock extends BaseCcBlock
|
|||
* @param string $format The date/time format string (either date()-style or strftime()-style).
|
||||
* If format is NULL, then the raw DateTime object will be returned.
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*
|
||||
* @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*/
|
||||
public function getDbMtime($format = 'Y-m-d H:i:s')
|
||||
{
|
||||
|
|
|
@ -14,9 +14,9 @@ class CcBlockcontents extends BaseCcBlockcontents
|
|||
*
|
||||
* @param mixed $format
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*
|
||||
* @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*/
|
||||
public function getDbFadein($format = 's.u')
|
||||
{
|
||||
|
@ -28,9 +28,9 @@ class CcBlockcontents extends BaseCcBlockcontents
|
|||
*
|
||||
* @param mixed $format
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*
|
||||
* @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*/
|
||||
public function getDbFadeout($format = 's.u')
|
||||
{
|
||||
|
|
|
@ -69,9 +69,9 @@ class CcFiles extends BaseCcFiles
|
|||
*
|
||||
* @param $fileArray An array containing metadata for a CcFiles object
|
||||
*
|
||||
* @throws Exception
|
||||
*
|
||||
* @return object the sanitized response
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function createFromUpload($fileArray)
|
||||
{
|
||||
|
@ -126,10 +126,10 @@ class CcFiles extends BaseCcFiles
|
|||
* @param string $originalFilename
|
||||
* @param bool $copyFile
|
||||
*
|
||||
* @return mixed
|
||||
*
|
||||
* @throws Exception
|
||||
* @throws PropelException
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
private static function createAndImport($fileArray, $filePath, $originalFilename, $copyFile = false)
|
||||
{
|
||||
|
@ -190,11 +190,11 @@ class CcFiles extends BaseCcFiles
|
|||
* @param $fileId string The ID of the file to update in the DB
|
||||
* @param $fileArray array An associative array containing metadata. Replaces those fields if they exist.
|
||||
*
|
||||
* @return array a sanitized version of the file metadata array
|
||||
*
|
||||
* @throws Exception
|
||||
* @throws LibreTimeFileNotFoundException
|
||||
* @throws PropelException
|
||||
*
|
||||
* @return array a sanitized version of the file metadata array
|
||||
*/
|
||||
public static function updateFromArray($fileId, $fileArray)
|
||||
{
|
||||
|
|
|
@ -15,9 +15,9 @@ class CcPlaylist extends BaseCcPlaylist
|
|||
* @param string $format The date/time format string (either date()-style or strftime()-style).
|
||||
* If format is NULL, then the raw DateTime object will be returned.
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*
|
||||
* @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*/
|
||||
public function getDbUtime($format = 'Y-m-d H:i:s')
|
||||
{
|
||||
|
@ -48,9 +48,9 @@ class CcPlaylist extends BaseCcPlaylist
|
|||
* @param string $format The date/time format string (either date()-style or strftime()-style).
|
||||
* If format is NULL, then the raw DateTime object will be returned.
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*
|
||||
* @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*/
|
||||
public function getDbMtime($format = 'Y-m-d H:i:s')
|
||||
{
|
||||
|
|
|
@ -14,9 +14,9 @@ class CcPlaylistcontents extends BaseCcPlaylistcontents
|
|||
*
|
||||
* @param mixed $format
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*
|
||||
* @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*/
|
||||
public function getDbFadein($format = 's.u')
|
||||
{
|
||||
|
@ -28,9 +28,9 @@ class CcPlaylistcontents extends BaseCcPlaylistcontents
|
|||
*
|
||||
* @param mixed $format
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*
|
||||
* @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*/
|
||||
public function getDbFadeout($format = 's.u')
|
||||
{
|
||||
|
|
|
@ -15,9 +15,9 @@ class CcSchedule extends BaseCcSchedule
|
|||
* @param string $format The date/time format string (either date()-style or strftime()-style).
|
||||
* If format is NULL, then the raw DateTime object will be returned.
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*
|
||||
* @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*/
|
||||
public function getDbStarts($format = 'Y-m-d H:i:s.u')
|
||||
{
|
||||
|
@ -48,9 +48,9 @@ class CcSchedule extends BaseCcSchedule
|
|||
* @param string $format The date/time format string (either date()-style or strftime()-style).
|
||||
* If format is NULL, then the raw DateTime object will be returned.
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*
|
||||
* @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*/
|
||||
public function getDbEnds($format = 'Y-m-d H:i:s.u')
|
||||
{
|
||||
|
@ -80,9 +80,9 @@ class CcSchedule extends BaseCcSchedule
|
|||
*
|
||||
* @param mixed $format
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*
|
||||
* @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*/
|
||||
public function getDbFadeIn($format = 's.u')
|
||||
{
|
||||
|
@ -94,9 +94,9 @@ class CcSchedule extends BaseCcSchedule
|
|||
*
|
||||
* @param mixed $format
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*
|
||||
* @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*/
|
||||
public function getDbFadeOut($format = 's.u')
|
||||
{
|
||||
|
|
|
@ -38,9 +38,9 @@ class CcShow extends BaseCcShow
|
|||
* @param Criteria $criteria optional Criteria object to narrow the query
|
||||
* @param PropelPDO $con optional connection object
|
||||
*
|
||||
* @throws PropelException
|
||||
*
|
||||
* @return array|PropelCollection CcShowDays[] List of CcShowDays objects
|
||||
*
|
||||
* @throws PropelException
|
||||
*/
|
||||
public function getFirstCcShowDay($criteria = null, PropelPDO $con = null)
|
||||
{
|
||||
|
@ -157,9 +157,9 @@ class CcShow extends BaseCcShow
|
|||
* @param Criteria $criteria optional Criteria object to narrow the query
|
||||
* @param PropelPDO $con optional connection object
|
||||
*
|
||||
* @throws PropelException
|
||||
*
|
||||
* @return array|PropelCollection CcShowInstances[] List of CcShowInstances objects
|
||||
*
|
||||
* @throws PropelException
|
||||
*/
|
||||
public function getFutureCcShowInstancess($criteria = null, PropelPDO $con = null)
|
||||
{
|
||||
|
@ -242,9 +242,9 @@ class CcShow extends BaseCcShow
|
|||
* @param Criteria $criteria optional Criteria object to narrow the query
|
||||
* @param PropelPDO $con optional connection object
|
||||
*
|
||||
* @throws PropelException
|
||||
*
|
||||
* @return array|PropelCollection CcShowInstances[] List of CcShowInstances objects
|
||||
*
|
||||
* @throws PropelException
|
||||
*/
|
||||
public function getCcShowInstancess($criteria = null, PropelPDO $con = null)
|
||||
{
|
||||
|
|
|
@ -15,9 +15,9 @@ class CcShowInstances extends BaseCcShowInstances
|
|||
* @param string $format The date/time format string (either date()-style or strftime()-style).
|
||||
* If format is NULL, then the raw DateTime object will be returned.
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*
|
||||
* @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*/
|
||||
public function getDbStarts($format = 'Y-m-d H:i:s')
|
||||
{
|
||||
|
@ -48,9 +48,9 @@ class CcShowInstances extends BaseCcShowInstances
|
|||
* @param string $format The date/time format string (either date()-style or strftime()-style).
|
||||
* If format is NULL, then the raw DateTime object will be returned.
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*
|
||||
* @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*/
|
||||
public function getDbEnds($format = 'Y-m-d H:i:s')
|
||||
{
|
||||
|
@ -81,9 +81,9 @@ class CcShowInstances extends BaseCcShowInstances
|
|||
* @param string $format The date/time format string (either date()-style or strftime()-style).
|
||||
* If format is NULL, then the raw DateTime object will be returned.
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*
|
||||
* @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL
|
||||
*
|
||||
* @throws propelException - if unable to parse/validate the date/time value
|
||||
*/
|
||||
public function getDbLastScheduled($format = 'Y-m-d H:i:s')
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue