1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473 |
- <?php
- /**
- * Base class that represents a row from the 'cc_files' table.
- *
- *
- *
- * @package propel.generator.airtime.om
- */
- abstract class BaseCcFiles extends BaseObject implements Persistent
- {
- /**
- * Peer class name
- */
- const PEER = 'CcFilesPeer';
- /**
- * The Peer class.
- * Instance provides a convenient way of calling static methods on a class
- * that calling code may not be able to identify.
- * @var CcFilesPeer
- */
- protected static $peer;
- /**
- * The value for the id field.
- * @var int
- */
- protected $id;
- /**
- * The value for the name field.
- * Note: this column has a database default value of: ''
- * @var string
- */
- protected $name;
- /**
- * The value for the mime field.
- * Note: this column has a database default value of: ''
- * @var string
- */
- protected $mime;
- /**
- * The value for the ftype field.
- * Note: this column has a database default value of: ''
- * @var string
- */
- protected $ftype;
- /**
- * The value for the directory field.
- * @var int
- */
- protected $directory;
- /**
- * The value for the filepath field.
- * Note: this column has a database default value of: ''
- * @var string
- */
- protected $filepath;
- /**
- * The value for the state field.
- * Note: this column has a database default value of: 'empty'
- * @var string
- */
- protected $state;
- /**
- * The value for the currentlyaccessing field.
- * Note: this column has a database default value of: 0
- * @var int
- */
- protected $currentlyaccessing;
- /**
- * The value for the editedby field.
- * @var int
- */
- protected $editedby;
- /**
- * The value for the mtime field.
- * @var string
- */
- protected $mtime;
- /**
- * The value for the utime field.
- * @var string
- */
- protected $utime;
- /**
- * The value for the lptime field.
- * @var string
- */
- protected $lptime;
- /**
- * The value for the md5 field.
- * @var string
- */
- protected $md5;
- /**
- * The value for the track_title field.
- * @var string
- */
- protected $track_title;
- /**
- * The value for the artist_name field.
- * @var string
- */
- protected $artist_name;
- /**
- * The value for the bit_rate field.
- * @var int
- */
- protected $bit_rate;
- /**
- * The value for the sample_rate field.
- * @var int
- */
- protected $sample_rate;
- /**
- * The value for the format field.
- * @var string
- */
- protected $format;
- /**
- * The value for the length field.
- * Note: this column has a database default value of: '00:00:00'
- * @var string
- */
- protected $length;
- /**
- * The value for the album_title field.
- * @var string
- */
- protected $album_title;
- /**
- * The value for the genre field.
- * @var string
- */
- protected $genre;
- /**
- * The value for the comments field.
- * @var string
- */
- protected $comments;
- /**
- * The value for the year field.
- * @var string
- */
- protected $year;
- /**
- * The value for the track_number field.
- * @var int
- */
- protected $track_number;
- /**
- * The value for the channels field.
- * @var int
- */
- protected $channels;
- /**
- * The value for the url field.
- * @var string
- */
- protected $url;
- /**
- * The value for the bpm field.
- * @var int
- */
- protected $bpm;
- /**
- * The value for the rating field.
- * @var string
- */
- protected $rating;
- /**
- * The value for the encoded_by field.
- * @var string
- */
- protected $encoded_by;
- /**
- * The value for the disc_number field.
- * @var string
- */
- protected $disc_number;
- /**
- * The value for the mood field.
- * @var string
- */
- protected $mood;
- /**
- * The value for the label field.
- * @var string
- */
- protected $label;
- /**
- * The value for the composer field.
- * @var string
- */
- protected $composer;
- /**
- * The value for the encoder field.
- * @var string
- */
- protected $encoder;
- /**
- * The value for the checksum field.
- * @var string
- */
- protected $checksum;
- /**
- * The value for the lyrics field.
- * @var string
- */
- protected $lyrics;
- /**
- * The value for the orchestra field.
- * @var string
- */
- protected $orchestra;
- /**
- * The value for the conductor field.
- * @var string
- */
- protected $conductor;
- /**
- * The value for the lyricist field.
- * @var string
- */
- protected $lyricist;
- /**
- * The value for the original_lyricist field.
- * @var string
- */
- protected $original_lyricist;
- /**
- * The value for the radio_station_name field.
- * @var string
- */
- protected $radio_station_name;
- /**
- * The value for the info_url field.
- * @var string
- */
- protected $info_url;
- /**
- * The value for the artist_url field.
- * @var string
- */
- protected $artist_url;
- /**
- * The value for the audio_source_url field.
- * @var string
- */
- protected $audio_source_url;
- /**
- * The value for the radio_station_url field.
- * @var string
- */
- protected $radio_station_url;
- /**
- * The value for the buy_this_url field.
- * @var string
- */
- protected $buy_this_url;
- /**
- * The value for the isrc_number field.
- * @var string
- */
- protected $isrc_number;
- /**
- * The value for the catalog_number field.
- * @var string
- */
- protected $catalog_number;
- /**
- * The value for the original_artist field.
- * @var string
- */
- protected $original_artist;
- /**
- * The value for the copyright field.
- * @var string
- */
- protected $copyright;
- /**
- * The value for the report_datetime field.
- * @var string
- */
- protected $report_datetime;
- /**
- * The value for the report_location field.
- * @var string
- */
- protected $report_location;
- /**
- * The value for the report_organization field.
- * @var string
- */
- protected $report_organization;
- /**
- * The value for the subject field.
- * @var string
- */
- protected $subject;
- /**
- * The value for the contributor field.
- * @var string
- */
- protected $contributor;
- /**
- * The value for the language field.
- * @var string
- */
- protected $language;
- /**
- * The value for the file_exists field.
- * Note: this column has a database default value of: true
- * @var boolean
- */
- protected $file_exists;
- /**
- * The value for the soundcloud_id field.
- * @var int
- */
- protected $soundcloud_id;
- /**
- * The value for the soundcloud_error_code field.
- * @var int
- */
- protected $soundcloud_error_code;
- /**
- * The value for the soundcloud_error_msg field.
- * @var string
- */
- protected $soundcloud_error_msg;
- /**
- * The value for the soundcloud_link_to_file field.
- * @var string
- */
- protected $soundcloud_link_to_file;
- /**
- * The value for the soundcloud_upload_time field.
- * @var string
- */
- protected $soundcloud_upload_time;
- /**
- * The value for the replay_gain field.
- * @var string
- */
- protected $replay_gain;
- /**
- * The value for the owner_id field.
- * @var int
- */
- protected $owner_id;
- /**
- * The value for the cuein field.
- * Note: this column has a database default value of: '00:00:00'
- * @var string
- */
- protected $cuein;
- /**
- * The value for the cueout field.
- * Note: this column has a database default value of: '00:00:00'
- * @var string
- */
- protected $cueout;
- /**
- * The value for the silan_check field.
- * Note: this column has a database default value of: false
- * @var boolean
- */
- protected $silan_check;
- /**
- * The value for the hidden field.
- * Note: this column has a database default value of: false
- * @var boolean
- */
- protected $hidden;
- /**
- * The value for the is_scheduled field.
- * Note: this column has a database default value of: false
- * @var boolean
- */
- protected $is_scheduled;
- /**
- * The value for the is_playlist field.
- * Note: this column has a database default value of: false
- * @var boolean
- */
- protected $is_playlist;
- /**
- * @var CcSubjs
- */
- protected $aFkOwner;
- /**
- * @var CcSubjs
- */
- protected $aCcSubjsRelatedByDbEditedby;
- /**
- * @var CcMusicDirs
- */
- protected $aCcMusicDirs;
- /**
- * @var array CcShowInstances[] Collection to store aggregation of CcShowInstances objects.
- */
- protected $collCcShowInstancess;
- /**
- * @var array CcPlaylistcontents[] Collection to store aggregation of CcPlaylistcontents objects.
- */
- protected $collCcPlaylistcontentss;
- /**
- * @var array CcBlockcontents[] Collection to store aggregation of CcBlockcontents objects.
- */
- protected $collCcBlockcontentss;
- /**
- * @var array CcSchedule[] Collection to store aggregation of CcSchedule objects.
- */
- protected $collCcSchedules;
- /**
- * @var array CcPlayoutHistory[] Collection to store aggregation of CcPlayoutHistory objects.
- */
- protected $collCcPlayoutHistorys;
- /**
- * Flag to prevent endless save loop, if this object is referenced
- * by another object which falls in this transaction.
- * @var boolean
- */
- protected $alreadyInSave = false;
- /**
- * Flag to prevent endless validation loop, if this object is referenced
- * by another object which falls in this transaction.
- * @var boolean
- */
- protected $alreadyInValidation = false;
- /**
- * Applies default values to this object.
- * This method should be called from the object's constructor (or
- * equivalent initialization method).
- * @see __construct()
- */
- public function applyDefaultValues()
- {
- $this->name = '';
- $this->mime = '';
- $this->ftype = '';
- $this->filepath = '';
- $this->state = 'empty';
- $this->currentlyaccessing = 0;
- $this->length = '00:00:00';
- $this->file_exists = true;
- $this->cuein = '00:00:00';
- $this->cueout = '00:00:00';
- $this->silan_check = false;
- $this->hidden = false;
- $this->is_scheduled = false;
- $this->is_playlist = false;
- }
- /**
- * Initializes internal state of BaseCcFiles object.
- * @see applyDefaults()
- */
- public function __construct()
- {
- parent::__construct();
- $this->applyDefaultValues();
- }
- /**
- * Get the [id] column value.
- *
- * @return int
- */
- public function getDbId()
- {
- return $this->id;
- }
- /**
- * Get the [name] column value.
- *
- * @return string
- */
- public function getDbName()
- {
- return $this->name;
- }
- /**
- * Get the [mime] column value.
- *
- * @return string
- */
- public function getDbMime()
- {
- return $this->mime;
- }
- /**
- * Get the [ftype] column value.
- *
- * @return string
- */
- public function getDbFtype()
- {
- return $this->ftype;
- }
- /**
- * Get the [directory] column value.
- *
- * @return int
- */
- public function getDbDirectory()
- {
- return $this->directory;
- }
- /**
- * Get the [filepath] column value.
- *
- * @return string
- */
- public function getDbFilepath()
- {
- return $this->filepath;
- }
- /**
- * Get the [state] column value.
- *
- * @return string
- */
- public function getDbState()
- {
- return $this->state;
- }
- /**
- * Get the [currentlyaccessing] column value.
- *
- * @return int
- */
- public function getDbCurrentlyaccessing()
- {
- return $this->currentlyaccessing;
- }
- /**
- * Get the [editedby] column value.
- *
- * @return int
- */
- public function getDbEditedby()
- {
- return $this->editedby;
- }
- /**
- * Get the [optionally formatted] temporal [mtime] column value.
- *
- *
- * @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.
- * @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')
- {
- if ($this->mtime === null) {
- return null;
- }
- try {
- $dt = new DateTime($this->mtime);
- } catch (Exception $x) {
- throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->mtime, true), $x);
- }
- if ($format === null) {
- // Because propel.useDateTimeClass is TRUE, we return a DateTime object.
- return $dt;
- } elseif (strpos($format, '%') !== false) {
- return strftime($format, $dt->format('U'));
- } else {
- return $dt->format($format);
- }
- }
- /**
- * Get the [optionally formatted] temporal [utime] column value.
- *
- *
- * @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.
- * @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')
- {
- if ($this->utime === null) {
- return null;
- }
- try {
- $dt = new DateTime($this->utime);
- } catch (Exception $x) {
- throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->utime, true), $x);
- }
- if ($format === null) {
- // Because propel.useDateTimeClass is TRUE, we return a DateTime object.
- return $dt;
- } elseif (strpos($format, '%') !== false) {
- return strftime($format, $dt->format('U'));
- } else {
- return $dt->format($format);
- }
- }
- /**
- * Get the [optionally formatted] temporal [lptime] column value.
- *
- *
- * @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.
- * @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 getDbLPtime($format = 'Y-m-d H:i:s')
- {
- if ($this->lptime === null) {
- return null;
- }
- try {
- $dt = new DateTime($this->lptime);
- } catch (Exception $x) {
- throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->lptime, true), $x);
- }
- if ($format === null) {
- // Because propel.useDateTimeClass is TRUE, we return a DateTime object.
- return $dt;
- } elseif (strpos($format, '%') !== false) {
- return strftime($format, $dt->format('U'));
- } else {
- return $dt->format($format);
- }
- }
- /**
- * Get the [md5] column value.
- *
- * @return string
- */
- public function getDbMd5()
- {
- return $this->md5;
- }
- /**
- * Get the [track_title] column value.
- *
- * @return string
- */
- public function getDbTrackTitle()
- {
- return $this->track_title;
- }
- /**
- * Get the [artist_name] column value.
- *
- * @return string
- */
- public function getDbArtistName()
- {
- return $this->artist_name;
- }
- /**
- * Get the [bit_rate] column value.
- *
- * @return int
- */
- public function getDbBitRate()
- {
- return $this->bit_rate;
- }
- /**
- * Get the [sample_rate] column value.
- *
- * @return int
- */
- public function getDbSampleRate()
- {
- return $this->sample_rate;
- }
- /**
- * Get the [format] column value.
- *
- * @return string
- */
- public function getDbFormat()
- {
- return $this->format;
- }
- /**
- * Get the [length] column value.
- *
- * @return string
- */
- public function getDbLength()
- {
- return $this->length;
- }
- /**
- * Get the [album_title] column value.
- *
- * @return string
- */
- public function getDbAlbumTitle()
- {
- return $this->album_title;
- }
- /**
- * Get the [genre] column value.
- *
- * @return string
- */
- public function getDbGenre()
- {
- return $this->genre;
- }
- /**
- * Get the [comments] column value.
- *
- * @return string
- */
- public function getDbComments()
- {
- return $this->comments;
- }
- /**
- * Get the [year] column value.
- *
- * @return string
- */
- public function getDbYear()
- {
- return $this->year;
- }
- /**
- * Get the [track_number] column value.
- *
- * @return int
- */
- public function getDbTrackNumber()
- {
- return $this->track_number;
- }
- /**
- * Get the [channels] column value.
- *
- * @return int
- */
- public function getDbChannels()
- {
- return $this->channels;
- }
- /**
- * Get the [url] column value.
- *
- * @return string
- */
- public function getDbUrl()
- {
- return $this->url;
- }
- /**
- * Get the [bpm] column value.
- *
- * @return int
- */
- public function getDbBpm()
- {
- return $this->bpm;
- }
- /**
- * Get the [rating] column value.
- *
- * @return string
- */
- public function getDbRating()
- {
- return $this->rating;
- }
- /**
- * Get the [encoded_by] column value.
- *
- * @return string
- */
- public function getDbEncodedBy()
- {
- return $this->encoded_by;
- }
- /**
- * Get the [disc_number] column value.
- *
- * @return string
- */
- public function getDbDiscNumber()
- {
- return $this->disc_number;
- }
- /**
- * Get the [mood] column value.
- *
- * @return string
- */
- public function getDbMood()
- {
- return $this->mood;
- }
- /**
- * Get the [label] column value.
- *
- * @return string
- */
- public function getDbLabel()
- {
- return $this->label;
- }
- /**
- * Get the [composer] column value.
- *
- * @return string
- */
- public function getDbComposer()
- {
- return $this->composer;
- }
- /**
- * Get the [encoder] column value.
- *
- * @return string
- */
- public function getDbEncoder()
- {
- return $this->encoder;
- }
- /**
- * Get the [checksum] column value.
- *
- * @return string
- */
- public function getDbChecksum()
- {
- return $this->checksum;
- }
- /**
- * Get the [lyrics] column value.
- *
- * @return string
- */
- public function getDbLyrics()
- {
- return $this->lyrics;
- }
- /**
- * Get the [orchestra] column value.
- *
- * @return string
- */
- public function getDbOrchestra()
- {
- return $this->orchestra;
- }
- /**
- * Get the [conductor] column value.
- *
- * @return string
- */
- public function getDbConductor()
- {
- return $this->conductor;
- }
- /**
- * Get the [lyricist] column value.
- *
- * @return string
- */
- public function getDbLyricist()
- {
- return $this->lyricist;
- }
- /**
- * Get the [original_lyricist] column value.
- *
- * @return string
- */
- public function getDbOriginalLyricist()
- {
- return $this->original_lyricist;
- }
- /**
- * Get the [radio_station_name] column value.
- *
- * @return string
- */
- public function getDbRadioStationName()
- {
- return $this->radio_station_name;
- }
- /**
- * Get the [info_url] column value.
- *
- * @return string
- */
- public function getDbInfoUrl()
- {
- return $this->info_url;
- }
- /**
- * Get the [artist_url] column value.
- *
- * @return string
- */
- public function getDbArtistUrl()
- {
- return $this->artist_url;
- }
- /**
- * Get the [audio_source_url] column value.
- *
- * @return string
- */
- public function getDbAudioSourceUrl()
- {
- return $this->audio_source_url;
- }
- /**
- * Get the [radio_station_url] column value.
- *
- * @return string
- */
- public function getDbRadioStationUrl()
- {
- return $this->radio_station_url;
- }
- /**
- * Get the [buy_this_url] column value.
- *
- * @return string
- */
- public function getDbBuyThisUrl()
- {
- return $this->buy_this_url;
- }
- /**
- * Get the [isrc_number] column value.
- *
- * @return string
- */
- public function getDbIsrcNumber()
- {
- return $this->isrc_number;
- }
- /**
- * Get the [catalog_number] column value.
- *
- * @return string
- */
- public function getDbCatalogNumber()
- {
- return $this->catalog_number;
- }
- /**
- * Get the [original_artist] column value.
- *
- * @return string
- */
- public function getDbOriginalArtist()
- {
- return $this->original_artist;
- }
- /**
- * Get the [copyright] column value.
- *
- * @return string
- */
- public function getDbCopyright()
- {
- return $this->copyright;
- }
- /**
- * Get the [report_datetime] column value.
- *
- * @return string
- */
- public function getDbReportDatetime()
- {
- return $this->report_datetime;
- }
- /**
- * Get the [report_location] column value.
- *
- * @return string
- */
- public function getDbReportLocation()
- {
- return $this->report_location;
- }
- /**
- * Get the [report_organization] column value.
- *
- * @return string
- */
- public function getDbReportOrganization()
- {
- return $this->report_organization;
- }
- /**
- * Get the [subject] column value.
- *
- * @return string
- */
- public function getDbSubject()
- {
- return $this->subject;
- }
- /**
- * Get the [contributor] column value.
- *
- * @return string
- */
- public function getDbContributor()
- {
- return $this->contributor;
- }
- /**
- * Get the [language] column value.
- *
- * @return string
- */
- public function getDbLanguage()
- {
- return $this->language;
- }
- /**
- * Get the [file_exists] column value.
- *
- * @return boolean
- */
- public function getDbFileExists()
- {
- return $this->file_exists;
- }
- /**
- * Get the [soundcloud_id] column value.
- *
- * @return int
- */
- public function getDbSoundcloudId()
- {
- return $this->soundcloud_id;
- }
- /**
- * Get the [soundcloud_error_code] column value.
- *
- * @return int
- */
- public function getDbSoundcloudErrorCode()
- {
- return $this->soundcloud_error_code;
- }
- /**
- * Get the [soundcloud_error_msg] column value.
- *
- * @return string
- */
- public function getDbSoundcloudErrorMsg()
- {
- return $this->soundcloud_error_msg;
- }
- /**
- * Get the [soundcloud_link_to_file] column value.
- *
- * @return string
- */
- public function getDbSoundcloudLinkToFile()
- {
- return $this->soundcloud_link_to_file;
- }
- /**
- * Get the [optionally formatted] temporal [soundcloud_upload_time] column value.
- *
- *
- * @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.
- * @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 getDbSoundCloundUploadTime($format = 'Y-m-d H:i:s')
- {
- if ($this->soundcloud_upload_time === null) {
- return null;
- }
- try {
- $dt = new DateTime($this->soundcloud_upload_time);
- } catch (Exception $x) {
- throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->soundcloud_upload_time, true), $x);
- }
- if ($format === null) {
- // Because propel.useDateTimeClass is TRUE, we return a DateTime object.
- return $dt;
- } elseif (strpos($format, '%') !== false) {
- return strftime($format, $dt->format('U'));
- } else {
- return $dt->format($format);
- }
- }
- /**
- * Get the [replay_gain] column value.
- *
- * @return string
- */
- public function getDbReplayGain()
- {
- return $this->replay_gain;
- }
- /**
- * Get the [owner_id] column value.
- *
- * @return int
- */
- public function getDbOwnerId()
- {
- return $this->owner_id;
- }
- /**
- * Get the [cuein] column value.
- *
- * @return string
- */
- public function getDbCuein()
- {
- return $this->cuein;
- }
- /**
- * Get the [cueout] column value.
- *
- * @return string
- */
- public function getDbCueout()
- {
- return $this->cueout;
- }
- /**
- * Get the [silan_check] column value.
- *
- * @return boolean
- */
- public function getDbSilanCheck()
- {
- return $this->silan_check;
- }
- /**
- * Get the [hidden] column value.
- *
- * @return boolean
- */
- public function getDbHidden()
- {
- return $this->hidden;
- }
- /**
- * Get the [is_scheduled] column value.
- *
- * @return boolean
- */
- public function getDbIsScheduled()
- {
- return $this->is_scheduled;
- }
- /**
- * Get the [is_playlist] column value.
- *
- * @return boolean
- */
- public function getDbIsPlaylist()
- {
- return $this->is_playlist;
- }
- /**
- * Set the value of [id] column.
- *
- * @param int $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbId($v)
- {
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->id !== $v) {
- $this->id = $v;
- $this->modifiedColumns[] = CcFilesPeer::ID;
- }
- return $this;
- } // setDbId()
- /**
- * Set the value of [name] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbName($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->name !== $v || $this->isNew()) {
- $this->name = $v;
- $this->modifiedColumns[] = CcFilesPeer::NAME;
- }
- return $this;
- } // setDbName()
- /**
- * Set the value of [mime] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbMime($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->mime !== $v || $this->isNew()) {
- $this->mime = $v;
- $this->modifiedColumns[] = CcFilesPeer::MIME;
- }
- return $this;
- } // setDbMime()
- /**
- * Set the value of [ftype] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbFtype($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->ftype !== $v || $this->isNew()) {
- $this->ftype = $v;
- $this->modifiedColumns[] = CcFilesPeer::FTYPE;
- }
- return $this;
- } // setDbFtype()
- /**
- * Set the value of [directory] column.
- *
- * @param int $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbDirectory($v)
- {
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->directory !== $v) {
- $this->directory = $v;
- $this->modifiedColumns[] = CcFilesPeer::DIRECTORY;
- }
- if ($this->aCcMusicDirs !== null && $this->aCcMusicDirs->getId() !== $v) {
- $this->aCcMusicDirs = null;
- }
- return $this;
- } // setDbDirectory()
- /**
- * Set the value of [filepath] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbFilepath($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->filepath !== $v || $this->isNew()) {
- $this->filepath = $v;
- $this->modifiedColumns[] = CcFilesPeer::FILEPATH;
- }
- return $this;
- } // setDbFilepath()
- /**
- * Set the value of [state] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbState($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->state !== $v || $this->isNew()) {
- $this->state = $v;
- $this->modifiedColumns[] = CcFilesPeer::STATE;
- }
- return $this;
- } // setDbState()
- /**
- * Set the value of [currentlyaccessing] column.
- *
- * @param int $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbCurrentlyaccessing($v)
- {
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->currentlyaccessing !== $v || $this->isNew()) {
- $this->currentlyaccessing = $v;
- $this->modifiedColumns[] = CcFilesPeer::CURRENTLYACCESSING;
- }
- return $this;
- } // setDbCurrentlyaccessing()
- /**
- * Set the value of [editedby] column.
- *
- * @param int $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbEditedby($v)
- {
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->editedby !== $v) {
- $this->editedby = $v;
- $this->modifiedColumns[] = CcFilesPeer::EDITEDBY;
- }
- if ($this->aCcSubjsRelatedByDbEditedby !== null && $this->aCcSubjsRelatedByDbEditedby->getDbId() !== $v) {
- $this->aCcSubjsRelatedByDbEditedby = null;
- }
- return $this;
- } // setDbEditedby()
- /**
- * Sets the value of [mtime] column to a normalized version of the date/time value specified.
- *
- * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will
- * be treated as NULL for temporal objects.
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbMtime($v)
- {
- // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now')
- // -- which is unexpected, to say the least.
- if ($v === null || $v === '') {
- $dt = null;
- } elseif ($v instanceof DateTime) {
- $dt = $v;
- } else {
- // some string/numeric value passed; we normalize that so that we can
- // validate it.
- try {
- if (is_numeric($v)) { // if it's a unix timestamp
- $dt = new DateTime('@'.$v, new DateTimeZone('UTC'));
- // We have to explicitly specify and then change the time zone because of a
- // DateTime bug: http://bugs.php.net/bug.php?id=43003
- $dt->setTimeZone(new DateTimeZone(date_default_timezone_get()));
- } else {
- $dt = new DateTime($v);
- }
- } catch (Exception $x) {
- throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x);
- }
- }
- if ( $this->mtime !== null || $dt !== null ) {
- // (nested ifs are a little easier to read in this case)
- $currNorm = ($this->mtime !== null && $tmpDt = new DateTime($this->mtime)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null;
- $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null;
- if ( ($currNorm !== $newNorm) // normalized values don't match
- )
- {
- $this->mtime = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null);
- $this->modifiedColumns[] = CcFilesPeer::MTIME;
- }
- } // if either are not null
- return $this;
- } // setDbMtime()
- /**
- * Sets the value of [utime] column to a normalized version of the date/time value specified.
- *
- * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will
- * be treated as NULL for temporal objects.
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbUtime($v)
- {
- // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now')
- // -- which is unexpected, to say the least.
- if ($v === null || $v === '') {
- $dt = null;
- } elseif ($v instanceof DateTime) {
- $dt = $v;
- } else {
- // some string/numeric value passed; we normalize that so that we can
- // validate it.
- try {
- if (is_numeric($v)) { // if it's a unix timestamp
- $dt = new DateTime('@'.$v, new DateTimeZone('UTC'));
- // We have to explicitly specify and then change the time zone because of a
- // DateTime bug: http://bugs.php.net/bug.php?id=43003
- $dt->setTimeZone(new DateTimeZone(date_default_timezone_get()));
- } else {
- $dt = new DateTime($v);
- }
- } catch (Exception $x) {
- throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x);
- }
- }
- if ( $this->utime !== null || $dt !== null ) {
- // (nested ifs are a little easier to read in this case)
- $currNorm = ($this->utime !== null && $tmpDt = new DateTime($this->utime)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null;
- $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null;
- if ( ($currNorm !== $newNorm) // normalized values don't match
- )
- {
- $this->utime = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null);
- $this->modifiedColumns[] = CcFilesPeer::UTIME;
- }
- } // if either are not null
- return $this;
- } // setDbUtime()
- /**
- * Sets the value of [lptime] column to a normalized version of the date/time value specified.
- *
- * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will
- * be treated as NULL for temporal objects.
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbLPtime($v)
- {
- // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now')
- // -- which is unexpected, to say the least.
- if ($v === null || $v === '') {
- $dt = null;
- } elseif ($v instanceof DateTime) {
- $dt = $v;
- } else {
- // some string/numeric value passed; we normalize that so that we can
- // validate it.
- try {
- if (is_numeric($v)) { // if it's a unix timestamp
- $dt = new DateTime('@'.$v, new DateTimeZone('UTC'));
- // We have to explicitly specify and then change the time zone because of a
- // DateTime bug: http://bugs.php.net/bug.php?id=43003
- $dt->setTimeZone(new DateTimeZone(date_default_timezone_get()));
- } else {
- $dt = new DateTime($v);
- }
- } catch (Exception $x) {
- throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x);
- }
- }
- if ( $this->lptime !== null || $dt !== null ) {
- // (nested ifs are a little easier to read in this case)
- $currNorm = ($this->lptime !== null && $tmpDt = new DateTime($this->lptime)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null;
- $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null;
- if ( ($currNorm !== $newNorm) // normalized values don't match
- )
- {
- $this->lptime = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null);
- $this->modifiedColumns[] = CcFilesPeer::LPTIME;
- }
- } // if either are not null
- return $this;
- } // setDbLPtime()
- /**
- * Set the value of [md5] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbMd5($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->md5 !== $v) {
- $this->md5 = $v;
- $this->modifiedColumns[] = CcFilesPeer::MD5;
- }
- return $this;
- } // setDbMd5()
- /**
- * Set the value of [track_title] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbTrackTitle($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->track_title !== $v) {
- $this->track_title = $v;
- $this->modifiedColumns[] = CcFilesPeer::TRACK_TITLE;
- }
- return $this;
- } // setDbTrackTitle()
- /**
- * Set the value of [artist_name] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbArtistName($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->artist_name !== $v) {
- $this->artist_name = $v;
- $this->modifiedColumns[] = CcFilesPeer::ARTIST_NAME;
- }
- return $this;
- } // setDbArtistName()
- /**
- * Set the value of [bit_rate] column.
- *
- * @param int $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbBitRate($v)
- {
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->bit_rate !== $v) {
- $this->bit_rate = $v;
- $this->modifiedColumns[] = CcFilesPeer::BIT_RATE;
- }
- return $this;
- } // setDbBitRate()
- /**
- * Set the value of [sample_rate] column.
- *
- * @param int $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbSampleRate($v)
- {
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->sample_rate !== $v) {
- $this->sample_rate = $v;
- $this->modifiedColumns[] = CcFilesPeer::SAMPLE_RATE;
- }
- return $this;
- } // setDbSampleRate()
- /**
- * Set the value of [format] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbFormat($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->format !== $v) {
- $this->format = $v;
- $this->modifiedColumns[] = CcFilesPeer::FORMAT;
- }
- return $this;
- } // setDbFormat()
- /**
- * Set the value of [length] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbLength($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->length !== $v || $this->isNew()) {
- $this->length = $v;
- $this->modifiedColumns[] = CcFilesPeer::LENGTH;
- }
- return $this;
- } // setDbLength()
- /**
- * Set the value of [album_title] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbAlbumTitle($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->album_title !== $v) {
- $this->album_title = $v;
- $this->modifiedColumns[] = CcFilesPeer::ALBUM_TITLE;
- }
- return $this;
- } // setDbAlbumTitle()
- /**
- * Set the value of [genre] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbGenre($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->genre !== $v) {
- $this->genre = $v;
- $this->modifiedColumns[] = CcFilesPeer::GENRE;
- }
- return $this;
- } // setDbGenre()
- /**
- * Set the value of [comments] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbComments($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->comments !== $v) {
- $this->comments = $v;
- $this->modifiedColumns[] = CcFilesPeer::COMMENTS;
- }
- return $this;
- } // setDbComments()
- /**
- * Set the value of [year] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbYear($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->year !== $v) {
- $this->year = $v;
- $this->modifiedColumns[] = CcFilesPeer::YEAR;
- }
- return $this;
- } // setDbYear()
- /**
- * Set the value of [track_number] column.
- *
- * @param int $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbTrackNumber($v)
- {
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->track_number !== $v) {
- $this->track_number = $v;
- $this->modifiedColumns[] = CcFilesPeer::TRACK_NUMBER;
- }
- return $this;
- } // setDbTrackNumber()
- /**
- * Set the value of [channels] column.
- *
- * @param int $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbChannels($v)
- {
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->channels !== $v) {
- $this->channels = $v;
- $this->modifiedColumns[] = CcFilesPeer::CHANNELS;
- }
- return $this;
- } // setDbChannels()
- /**
- * Set the value of [url] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbUrl($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->url !== $v) {
- $this->url = $v;
- $this->modifiedColumns[] = CcFilesPeer::URL;
- }
- return $this;
- } // setDbUrl()
- /**
- * Set the value of [bpm] column.
- *
- * @param int $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbBpm($v)
- {
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->bpm !== $v) {
- $this->bpm = $v;
- $this->modifiedColumns[] = CcFilesPeer::BPM;
- }
- return $this;
- } // setDbBpm()
- /**
- * Set the value of [rating] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbRating($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->rating !== $v) {
- $this->rating = $v;
- $this->modifiedColumns[] = CcFilesPeer::RATING;
- }
- return $this;
- } // setDbRating()
- /**
- * Set the value of [encoded_by] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbEncodedBy($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->encoded_by !== $v) {
- $this->encoded_by = $v;
- $this->modifiedColumns[] = CcFilesPeer::ENCODED_BY;
- }
- return $this;
- } // setDbEncodedBy()
- /**
- * Set the value of [disc_number] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbDiscNumber($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->disc_number !== $v) {
- $this->disc_number = $v;
- $this->modifiedColumns[] = CcFilesPeer::DISC_NUMBER;
- }
- return $this;
- } // setDbDiscNumber()
- /**
- * Set the value of [mood] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbMood($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->mood !== $v) {
- $this->mood = $v;
- $this->modifiedColumns[] = CcFilesPeer::MOOD;
- }
- return $this;
- } // setDbMood()
- /**
- * Set the value of [label] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbLabel($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->label !== $v) {
- $this->label = $v;
- $this->modifiedColumns[] = CcFilesPeer::LABEL;
- }
- return $this;
- } // setDbLabel()
- /**
- * Set the value of [composer] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbComposer($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->composer !== $v) {
- $this->composer = $v;
- $this->modifiedColumns[] = CcFilesPeer::COMPOSER;
- }
- return $this;
- } // setDbComposer()
- /**
- * Set the value of [encoder] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbEncoder($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->encoder !== $v) {
- $this->encoder = $v;
- $this->modifiedColumns[] = CcFilesPeer::ENCODER;
- }
- return $this;
- } // setDbEncoder()
- /**
- * Set the value of [checksum] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbChecksum($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->checksum !== $v) {
- $this->checksum = $v;
- $this->modifiedColumns[] = CcFilesPeer::CHECKSUM;
- }
- return $this;
- } // setDbChecksum()
- /**
- * Set the value of [lyrics] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbLyrics($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->lyrics !== $v) {
- $this->lyrics = $v;
- $this->modifiedColumns[] = CcFilesPeer::LYRICS;
- }
- return $this;
- } // setDbLyrics()
- /**
- * Set the value of [orchestra] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbOrchestra($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->orchestra !== $v) {
- $this->orchestra = $v;
- $this->modifiedColumns[] = CcFilesPeer::ORCHESTRA;
- }
- return $this;
- } // setDbOrchestra()
- /**
- * Set the value of [conductor] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbConductor($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->conductor !== $v) {
- $this->conductor = $v;
- $this->modifiedColumns[] = CcFilesPeer::CONDUCTOR;
- }
- return $this;
- } // setDbConductor()
- /**
- * Set the value of [lyricist] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbLyricist($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->lyricist !== $v) {
- $this->lyricist = $v;
- $this->modifiedColumns[] = CcFilesPeer::LYRICIST;
- }
- return $this;
- } // setDbLyricist()
- /**
- * Set the value of [original_lyricist] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbOriginalLyricist($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->original_lyricist !== $v) {
- $this->original_lyricist = $v;
- $this->modifiedColumns[] = CcFilesPeer::ORIGINAL_LYRICIST;
- }
- return $this;
- } // setDbOriginalLyricist()
- /**
- * Set the value of [radio_station_name] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbRadioStationName($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->radio_station_name !== $v) {
- $this->radio_station_name = $v;
- $this->modifiedColumns[] = CcFilesPeer::RADIO_STATION_NAME;
- }
- return $this;
- } // setDbRadioStationName()
- /**
- * Set the value of [info_url] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbInfoUrl($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->info_url !== $v) {
- $this->info_url = $v;
- $this->modifiedColumns[] = CcFilesPeer::INFO_URL;
- }
- return $this;
- } // setDbInfoUrl()
- /**
- * Set the value of [artist_url] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbArtistUrl($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->artist_url !== $v) {
- $this->artist_url = $v;
- $this->modifiedColumns[] = CcFilesPeer::ARTIST_URL;
- }
- return $this;
- } // setDbArtistUrl()
- /**
- * Set the value of [audio_source_url] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbAudioSourceUrl($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->audio_source_url !== $v) {
- $this->audio_source_url = $v;
- $this->modifiedColumns[] = CcFilesPeer::AUDIO_SOURCE_URL;
- }
- return $this;
- } // setDbAudioSourceUrl()
- /**
- * Set the value of [radio_station_url] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbRadioStationUrl($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->radio_station_url !== $v) {
- $this->radio_station_url = $v;
- $this->modifiedColumns[] = CcFilesPeer::RADIO_STATION_URL;
- }
- return $this;
- } // setDbRadioStationUrl()
- /**
- * Set the value of [buy_this_url] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbBuyThisUrl($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->buy_this_url !== $v) {
- $this->buy_this_url = $v;
- $this->modifiedColumns[] = CcFilesPeer::BUY_THIS_URL;
- }
- return $this;
- } // setDbBuyThisUrl()
- /**
- * Set the value of [isrc_number] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbIsrcNumber($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->isrc_number !== $v) {
- $this->isrc_number = $v;
- $this->modifiedColumns[] = CcFilesPeer::ISRC_NUMBER;
- }
- return $this;
- } // setDbIsrcNumber()
- /**
- * Set the value of [catalog_number] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbCatalogNumber($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->catalog_number !== $v) {
- $this->catalog_number = $v;
- $this->modifiedColumns[] = CcFilesPeer::CATALOG_NUMBER;
- }
- return $this;
- } // setDbCatalogNumber()
- /**
- * Set the value of [original_artist] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbOriginalArtist($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->original_artist !== $v) {
- $this->original_artist = $v;
- $this->modifiedColumns[] = CcFilesPeer::ORIGINAL_ARTIST;
- }
- return $this;
- } // setDbOriginalArtist()
- /**
- * Set the value of [copyright] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbCopyright($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->copyright !== $v) {
- $this->copyright = $v;
- $this->modifiedColumns[] = CcFilesPeer::COPYRIGHT;
- }
- return $this;
- } // setDbCopyright()
- /**
- * Set the value of [report_datetime] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbReportDatetime($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->report_datetime !== $v) {
- $this->report_datetime = $v;
- $this->modifiedColumns[] = CcFilesPeer::REPORT_DATETIME;
- }
- return $this;
- } // setDbReportDatetime()
- /**
- * Set the value of [report_location] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbReportLocation($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->report_location !== $v) {
- $this->report_location = $v;
- $this->modifiedColumns[] = CcFilesPeer::REPORT_LOCATION;
- }
- return $this;
- } // setDbReportLocation()
- /**
- * Set the value of [report_organization] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbReportOrganization($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->report_organization !== $v) {
- $this->report_organization = $v;
- $this->modifiedColumns[] = CcFilesPeer::REPORT_ORGANIZATION;
- }
- return $this;
- } // setDbReportOrganization()
- /**
- * Set the value of [subject] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbSubject($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->subject !== $v) {
- $this->subject = $v;
- $this->modifiedColumns[] = CcFilesPeer::SUBJECT;
- }
- return $this;
- } // setDbSubject()
- /**
- * Set the value of [contributor] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbContributor($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->contributor !== $v) {
- $this->contributor = $v;
- $this->modifiedColumns[] = CcFilesPeer::CONTRIBUTOR;
- }
- return $this;
- } // setDbContributor()
- /**
- * Set the value of [language] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbLanguage($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->language !== $v) {
- $this->language = $v;
- $this->modifiedColumns[] = CcFilesPeer::LANGUAGE;
- }
- return $this;
- } // setDbLanguage()
- /**
- * Set the value of [file_exists] column.
- *
- * @param boolean $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbFileExists($v)
- {
- if ($v !== null) {
- $v = (boolean) $v;
- }
- if ($this->file_exists !== $v || $this->isNew()) {
- $this->file_exists = $v;
- $this->modifiedColumns[] = CcFilesPeer::FILE_EXISTS;
- }
- return $this;
- } // setDbFileExists()
- /**
- * Set the value of [soundcloud_id] column.
- *
- * @param int $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbSoundcloudId($v)
- {
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->soundcloud_id !== $v) {
- $this->soundcloud_id = $v;
- $this->modifiedColumns[] = CcFilesPeer::SOUNDCLOUD_ID;
- }
- return $this;
- } // setDbSoundcloudId()
- /**
- * Set the value of [soundcloud_error_code] column.
- *
- * @param int $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbSoundcloudErrorCode($v)
- {
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->soundcloud_error_code !== $v) {
- $this->soundcloud_error_code = $v;
- $this->modifiedColumns[] = CcFilesPeer::SOUNDCLOUD_ERROR_CODE;
- }
- return $this;
- } // setDbSoundcloudErrorCode()
- /**
- * Set the value of [soundcloud_error_msg] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbSoundcloudErrorMsg($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->soundcloud_error_msg !== $v) {
- $this->soundcloud_error_msg = $v;
- $this->modifiedColumns[] = CcFilesPeer::SOUNDCLOUD_ERROR_MSG;
- }
- return $this;
- } // setDbSoundcloudErrorMsg()
- /**
- * Set the value of [soundcloud_link_to_file] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbSoundcloudLinkToFile($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->soundcloud_link_to_file !== $v) {
- $this->soundcloud_link_to_file = $v;
- $this->modifiedColumns[] = CcFilesPeer::SOUNDCLOUD_LINK_TO_FILE;
- }
- return $this;
- } // setDbSoundcloudLinkToFile()
- /**
- * Sets the value of [soundcloud_upload_time] column to a normalized version of the date/time value specified.
- *
- * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will
- * be treated as NULL for temporal objects.
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbSoundCloundUploadTime($v)
- {
- // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now')
- // -- which is unexpected, to say the least.
- if ($v === null || $v === '') {
- $dt = null;
- } elseif ($v instanceof DateTime) {
- $dt = $v;
- } else {
- // some string/numeric value passed; we normalize that so that we can
- // validate it.
- try {
- if (is_numeric($v)) { // if it's a unix timestamp
- $dt = new DateTime('@'.$v, new DateTimeZone('UTC'));
- // We have to explicitly specify and then change the time zone because of a
- // DateTime bug: http://bugs.php.net/bug.php?id=43003
- $dt->setTimeZone(new DateTimeZone(date_default_timezone_get()));
- } else {
- $dt = new DateTime($v);
- }
- } catch (Exception $x) {
- throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x);
- }
- }
- if ( $this->soundcloud_upload_time !== null || $dt !== null ) {
- // (nested ifs are a little easier to read in this case)
- $currNorm = ($this->soundcloud_upload_time !== null && $tmpDt = new DateTime($this->soundcloud_upload_time)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null;
- $newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null;
- if ( ($currNorm !== $newNorm) // normalized values don't match
- )
- {
- $this->soundcloud_upload_time = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null);
- $this->modifiedColumns[] = CcFilesPeer::SOUNDCLOUD_UPLOAD_TIME;
- }
- } // if either are not null
- return $this;
- } // setDbSoundCloundUploadTime()
- /**
- * Set the value of [replay_gain] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbReplayGain($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->replay_gain !== $v) {
- $this->replay_gain = $v;
- $this->modifiedColumns[] = CcFilesPeer::REPLAY_GAIN;
- }
- return $this;
- } // setDbReplayGain()
- /**
- * Set the value of [owner_id] column.
- *
- * @param int $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbOwnerId($v)
- {
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->owner_id !== $v) {
- $this->owner_id = $v;
- $this->modifiedColumns[] = CcFilesPeer::OWNER_ID;
- }
- if ($this->aFkOwner !== null && $this->aFkOwner->getDbId() !== $v) {
- $this->aFkOwner = null;
- }
- return $this;
- } // setDbOwnerId()
- /**
- * Set the value of [cuein] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbCuein($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->cuein !== $v || $this->isNew()) {
- $this->cuein = $v;
- $this->modifiedColumns[] = CcFilesPeer::CUEIN;
- }
- return $this;
- } // setDbCuein()
- /**
- * Set the value of [cueout] column.
- *
- * @param string $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbCueout($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->cueout !== $v || $this->isNew()) {
- $this->cueout = $v;
- $this->modifiedColumns[] = CcFilesPeer::CUEOUT;
- }
- return $this;
- } // setDbCueout()
- /**
- * Set the value of [silan_check] column.
- *
- * @param boolean $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbSilanCheck($v)
- {
- if ($v !== null) {
- $v = (boolean) $v;
- }
- if ($this->silan_check !== $v || $this->isNew()) {
- $this->silan_check = $v;
- $this->modifiedColumns[] = CcFilesPeer::SILAN_CHECK;
- }
- return $this;
- } // setDbSilanCheck()
- /**
- * Set the value of [hidden] column.
- *
- * @param boolean $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbHidden($v)
- {
- if ($v !== null) {
- $v = (boolean) $v;
- }
- if ($this->hidden !== $v || $this->isNew()) {
- $this->hidden = $v;
- $this->modifiedColumns[] = CcFilesPeer::HIDDEN;
- }
- return $this;
- } // setDbHidden()
- /**
- * Set the value of [is_scheduled] column.
- *
- * @param boolean $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbIsScheduled($v)
- {
- if ($v !== null) {
- $v = (boolean) $v;
- }
- if ($this->is_scheduled !== $v || $this->isNew()) {
- $this->is_scheduled = $v;
- $this->modifiedColumns[] = CcFilesPeer::IS_SCHEDULED;
- }
- return $this;
- } // setDbIsScheduled()
- /**
- * Set the value of [is_playlist] column.
- *
- * @param boolean $v new value
- * @return CcFiles The current object (for fluent API support)
- */
- public function setDbIsPlaylist($v)
- {
- if ($v !== null) {
- $v = (boolean) $v;
- }
- if ($this->is_playlist !== $v || $this->isNew()) {
- $this->is_playlist = $v;
- $this->modifiedColumns[] = CcFilesPeer::IS_PLAYLIST;
- }
- return $this;
- } // setDbIsPlaylist()
- /**
- * Indicates whether the columns in this object are only set to default values.
- *
- * This method can be used in conjunction with isModified() to indicate whether an object is both
- * modified _and_ has some values set which are non-default.
- *
- * @return boolean Whether the columns in this object are only been set with default values.
- */
- public function hasOnlyDefaultValues()
- {
- if ($this->name !== '') {
- return false;
- }
- if ($this->mime !== '') {
- return false;
- }
- if ($this->ftype !== '') {
- return false;
- }
- if ($this->filepath !== '') {
- return false;
- }
- if ($this->state !== 'empty') {
- return false;
- }
- if ($this->currentlyaccessing !== 0) {
- return false;
- }
- if ($this->length !== '00:00:00') {
- return false;
- }
- if ($this->file_exists !== true) {
- return false;
- }
- if ($this->cuein !== '00:00:00') {
- return false;
- }
- if ($this->cueout !== '00:00:00') {
- return false;
- }
- if ($this->silan_check !== false) {
- return false;
- }
- if ($this->hidden !== false) {
- return false;
- }
- if ($this->is_scheduled !== false) {
- return false;
- }
- if ($this->is_playlist !== false) {
- return false;
- }
- // otherwise, everything was equal, so return TRUE
- return true;
- } // hasOnlyDefaultValues()
- /**
- * Hydrates (populates) the object variables with values from the database resultset.
- *
- * An offset (0-based "start column") is specified so that objects can be hydrated
- * with a subset of the columns in the resultset rows. This is needed, for example,
- * for results of JOIN queries where the resultset row includes columns from two or
- * more tables.
- *
- * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM)
- * @param int $startcol 0-based offset column which indicates which restultset column to start with.
- * @param boolean $rehydrate Whether this object is being re-hydrated from the database.
- * @return int next starting column
- * @throws PropelException - Any caught Exception will be rewrapped as a PropelException.
- */
- public function hydrate($row, $startcol = 0, $rehydrate = false)
- {
- try {
- $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null;
- $this->name = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null;
- $this->mime = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null;
- $this->ftype = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null;
- $this->directory = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null;
- $this->filepath = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null;
- $this->state = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null;
- $this->currentlyaccessing = ($row[$startcol + 7] !== null) ? (int) $row[$startcol + 7] : null;
- $this->editedby = ($row[$startcol + 8] !== null) ? (int) $row[$startcol + 8] : null;
- $this->mtime = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null;
- $this->utime = ($row[$startcol + 10] !== null) ? (string) $row[$startcol + 10] : null;
- $this->lptime = ($row[$startcol + 11] !== null) ? (string) $row[$startcol + 11] : null;
- $this->md5 = ($row[$startcol + 12] !== null) ? (string) $row[$startcol + 12] : null;
- $this->track_title = ($row[$startcol + 13] !== null) ? (string) $row[$startcol + 13] : null;
- $this->artist_name = ($row[$startcol + 14] !== null) ? (string) $row[$startcol + 14] : null;
- $this->bit_rate = ($row[$startcol + 15] !== null) ? (int) $row[$startcol + 15] : null;
- $this->sample_rate = ($row[$startcol + 16] !== null) ? (int) $row[$startcol + 16] : null;
- $this->format = ($row[$startcol + 17] !== null) ? (string) $row[$startcol + 17] : null;
- $this->length = ($row[$startcol + 18] !== null) ? (string) $row[$startcol + 18] : null;
- $this->album_title = ($row[$startcol + 19] !== null) ? (string) $row[$startcol + 19] : null;
- $this->genre = ($row[$startcol + 20] !== null) ? (string) $row[$startcol + 20] : null;
- $this->comments = ($row[$startcol + 21] !== null) ? (string) $row[$startcol + 21] : null;
- $this->year = ($row[$startcol + 22] !== null) ? (string) $row[$startcol + 22] : null;
- $this->track_number = ($row[$startcol + 23] !== null) ? (int) $row[$startcol + 23] : null;
- $this->channels = ($row[$startcol + 24] !== null) ? (int) $row[$startcol + 24] : null;
- $this->url = ($row[$startcol + 25] !== null) ? (string) $row[$startcol + 25] : null;
- $this->bpm = ($row[$startcol + 26] !== null) ? (int) $row[$startcol + 26] : null;
- $this->rating = ($row[$startcol + 27] !== null) ? (string) $row[$startcol + 27] : null;
- $this->encoded_by = ($row[$startcol + 28] !== null) ? (string) $row[$startcol + 28] : null;
- $this->disc_number = ($row[$startcol + 29] !== null) ? (string) $row[$startcol + 29] : null;
- $this->mood = ($row[$startcol + 30] !== null) ? (string) $row[$startcol + 30] : null;
- $this->label = ($row[$startcol + 31] !== null) ? (string) $row[$startcol + 31] : null;
- $this->composer = ($row[$startcol + 32] !== null) ? (string) $row[$startcol + 32] : null;
- $this->encoder = ($row[$startcol + 33] !== null) ? (string) $row[$startcol + 33] : null;
- $this->checksum = ($row[$startcol + 34] !== null) ? (string) $row[$startcol + 34] : null;
- $this->lyrics = ($row[$startcol + 35] !== null) ? (string) $row[$startcol + 35] : null;
- $this->orchestra = ($row[$startcol + 36] !== null) ? (string) $row[$startcol + 36] : null;
- $this->conductor = ($row[$startcol + 37] !== null) ? (string) $row[$startcol + 37] : null;
- $this->lyricist = ($row[$startcol + 38] !== null) ? (string) $row[$startcol + 38] : null;
- $this->original_lyricist = ($row[$startcol + 39] !== null) ? (string) $row[$startcol + 39] : null;
- $this->radio_station_name = ($row[$startcol + 40] !== null) ? (string) $row[$startcol + 40] : null;
- $this->info_url = ($row[$startcol + 41] !== null) ? (string) $row[$startcol + 41] : null;
- $this->artist_url = ($row[$startcol + 42] !== null) ? (string) $row[$startcol + 42] : null;
- $this->audio_source_url = ($row[$startcol + 43] !== null) ? (string) $row[$startcol + 43] : null;
- $this->radio_station_url = ($row[$startcol + 44] !== null) ? (string) $row[$startcol + 44] : null;
- $this->buy_this_url = ($row[$startcol + 45] !== null) ? (string) $row[$startcol + 45] : null;
- $this->isrc_number = ($row[$startcol + 46] !== null) ? (string) $row[$startcol + 46] : null;
- $this->catalog_number = ($row[$startcol + 47] !== null) ? (string) $row[$startcol + 47] : null;
- $this->original_artist = ($row[$startcol + 48] !== null) ? (string) $row[$startcol + 48] : null;
- $this->copyright = ($row[$startcol + 49] !== null) ? (string) $row[$startcol + 49] : null;
- $this->report_datetime = ($row[$startcol + 50] !== null) ? (string) $row[$startcol + 50] : null;
- $this->report_location = ($row[$startcol + 51] !== null) ? (string) $row[$startcol + 51] : null;
- $this->report_organization = ($row[$startcol + 52] !== null) ? (string) $row[$startcol + 52] : null;
- $this->subject = ($row[$startcol + 53] !== null) ? (string) $row[$startcol + 53] : null;
- $this->contributor = ($row[$startcol + 54] !== null) ? (string) $row[$startcol + 54] : null;
- $this->language = ($row[$startcol + 55] !== null) ? (string) $row[$startcol + 55] : null;
- $this->file_exists = ($row[$startcol + 56] !== null) ? (boolean) $row[$startcol + 56] : null;
- $this->soundcloud_id = ($row[$startcol + 57] !== null) ? (int) $row[$startcol + 57] : null;
- $this->soundcloud_error_code = ($row[$startcol + 58] !== null) ? (int) $row[$startcol + 58] : null;
- $this->soundcloud_error_msg = ($row[$startcol + 59] !== null) ? (string) $row[$startcol + 59] : null;
- $this->soundcloud_link_to_file = ($row[$startcol + 60] !== null) ? (string) $row[$startcol + 60] : null;
- $this->soundcloud_upload_time = ($row[$startcol + 61] !== null) ? (string) $row[$startcol + 61] : null;
- $this->replay_gain = ($row[$startcol + 62] !== null) ? (string) $row[$startcol + 62] : null;
- $this->owner_id = ($row[$startcol + 63] !== null) ? (int) $row[$startcol + 63] : null;
- $this->cuein = ($row[$startcol + 64] !== null) ? (string) $row[$startcol + 64] : null;
- $this->cueout = ($row[$startcol + 65] !== null) ? (string) $row[$startcol + 65] : null;
- $this->silan_check = ($row[$startcol + 66] !== null) ? (boolean) $row[$startcol + 66] : null;
- $this->hidden = ($row[$startcol + 67] !== null) ? (boolean) $row[$startcol + 67] : null;
- $this->is_scheduled = ($row[$startcol + 68] !== null) ? (boolean) $row[$startcol + 68] : null;
- $this->is_playlist = ($row[$startcol + 69] !== null) ? (boolean) $row[$startcol + 69] : null;
- $this->resetModified();
- $this->setNew(false);
- if ($rehydrate) {
- $this->ensureConsistency();
- }
- return $startcol + 70; // 70 = CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS).
- } catch (Exception $e) {
- throw new PropelException("Error populating CcFiles object", $e);
- }
- }
- /**
- * Checks and repairs the internal consistency of the object.
- *
- * This method is executed after an already-instantiated object is re-hydrated
- * from the database. It exists to check any foreign keys to make sure that
- * the objects related to the current object are correct based on foreign key.
- *
- * You can override this method in the stub class, but you should always invoke
- * the base method from the overridden method (i.e. parent::ensureConsistency()),
- * in case your model changes.
- *
- * @throws PropelException
- */
- public function ensureConsistency()
- {
- if ($this->aCcMusicDirs !== null && $this->directory !== $this->aCcMusicDirs->getId()) {
- $this->aCcMusicDirs = null;
- }
- if ($this->aCcSubjsRelatedByDbEditedby !== null && $this->editedby !== $this->aCcSubjsRelatedByDbEditedby->getDbId()) {
- $this->aCcSubjsRelatedByDbEditedby = null;
- }
- if ($this->aFkOwner !== null && $this->owner_id !== $this->aFkOwner->getDbId()) {
- $this->aFkOwner = null;
- }
- } // ensureConsistency
- /**
- * Reloads this object from datastore based on primary key and (optionally) resets all associated objects.
- *
- * This will only work if the object has been saved and has a valid primary key set.
- *
- * @param boolean $deep (optional) Whether to also de-associated any related objects.
- * @param PropelPDO $con (optional) The PropelPDO connection to use.
- * @return void
- * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db
- */
- public function reload($deep = false, PropelPDO $con = null)
- {
- if ($this->isDeleted()) {
- throw new PropelException("Cannot reload a deleted object.");
- }
- if ($this->isNew()) {
- throw new PropelException("Cannot reload an unsaved object.");
- }
- if ($con === null) {
- $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_READ);
- }
- // We don't need to alter the object instance pool; we're just modifying this instance
- // already in the pool.
- $stmt = CcFilesPeer::doSelectStmt($this->buildPkeyCriteria(), $con);
- $row = $stmt->fetch(PDO::FETCH_NUM);
- $stmt->closeCursor();
- if (!$row) {
- throw new PropelException('Cannot find matching row in the database to reload object values.');
- }
- $this->hydrate($row, 0, true); // rehydrate
- if ($deep) { // also de-associate any related objects?
- $this->aFkOwner = null;
- $this->aCcSubjsRelatedByDbEditedby = null;
- $this->aCcMusicDirs = null;
- $this->collCcShowInstancess = null;
- $this->collCcPlaylistcontentss = null;
- $this->collCcBlockcontentss = null;
- $this->collCcSchedules = null;
- $this->collCcPlayoutHistorys = null;
- } // if (deep)
- }
- /**
- * Removes this object from datastore and sets delete attribute.
- *
- * @param PropelPDO $con
- * @return void
- * @throws PropelException
- * @see BaseObject::setDeleted()
- * @see BaseObject::isDeleted()
- */
- public function delete(PropelPDO $con = null)
- {
- if ($this->isDeleted()) {
- throw new PropelException("This object has already been deleted.");
- }
- if ($con === null) {
- $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE);
- }
-
- $con->beginTransaction();
- try {
- $ret = $this->preDelete($con);
- if ($ret) {
- CcFilesQuery::create()
- ->filterByPrimaryKey($this->getPrimaryKey())
- ->delete($con);
- $this->postDelete($con);
- $con->commit();
- $this->setDeleted(true);
- } else {
- $con->commit();
- }
- } catch (PropelException $e) {
- $con->rollBack();
- throw $e;
- }
- }
- /**
- * Persists this object to the database.
- *
- * If the object is new, it inserts it; otherwise an update is performed.
- * All modified related objects will also be persisted in the doSave()
- * method. This method wraps all precipitate database operations in a
- * single transaction.
- *
- * @param PropelPDO $con
- * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations.
- * @throws PropelException
- * @see doSave()
- */
- public function save(PropelPDO $con = null)
- {
- if ($this->isDeleted()) {
- throw new PropelException("You cannot save an object that has been deleted.");
- }
- if ($con === null) {
- $con = Propel::getConnection(CcFilesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE);
- }
-
- $con->beginTransaction();
- $isInsert = $this->isNew();
- try {
- $ret = $this->preSave($con);
- if ($isInsert) {
- $ret = $ret && $this->preInsert($con);
- } else {
- $ret = $ret && $this->preUpdate($con);
- }
- if ($ret) {
- $affectedRows = $this->doSave($con);
- if ($isInsert) {
- $this->postInsert($con);
- } else {
- $this->postUpdate($con);
- }
- $this->postSave($con);
- CcFilesPeer::addInstanceToPool($this);
- } else {
- $affectedRows = 0;
- }
- $con->commit();
- return $affectedRows;
- } catch (PropelException $e) {
- $con->rollBack();
- throw $e;
- }
- }
- /**
- * Performs the work of inserting or updating the row in the database.
- *
- * If the object is new, it inserts it; otherwise an update is performed.
- * All related objects are also updated in this method.
- *
- * @param PropelPDO $con
- * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations.
- * @throws PropelException
- * @see save()
- */
- protected function doSave(PropelPDO $con)
- {
- $affectedRows = 0; // initialize var to track total num of affected rows
- if (!$this->alreadyInSave) {
- $this->alreadyInSave = true;
- // We call the save method on the following object(s) if they
- // were passed to this object by their coresponding set
- // method. This object relates to these object(s) by a
- // foreign key reference.
- if ($this->aFkOwner !== null) {
- if ($this->aFkOwner->isModified() || $this->aFkOwner->isNew()) {
- $affectedRows += $this->aFkOwner->save($con);
- }
- $this->setFkOwner($this->aFkOwner);
- }
- if ($this->aCcSubjsRelatedByDbEditedby !== null) {
- if ($this->aCcSubjsRelatedByDbEditedby->isModified() || $this->aCcSubjsRelatedByDbEditedby->isNew()) {
- $affectedRows += $this->aCcSubjsRelatedByDbEditedby->save($con);
- }
- $this->setCcSubjsRelatedByDbEditedby($this->aCcSubjsRelatedByDbEditedby);
- }
- if ($this->aCcMusicDirs !== null) {
- if ($this->aCcMusicDirs->isModified() || $this->aCcMusicDirs->isNew()) {
- $affectedRows += $this->aCcMusicDirs->save($con);
- }
- $this->setCcMusicDirs($this->aCcMusicDirs);
- }
- if ($this->isNew() ) {
- $this->modifiedColumns[] = CcFilesPeer::ID;
- }
- // If this object has been modified, then save it to the database.
- if ($this->isModified()) {
- if ($this->isNew()) {
- $criteria = $this->buildCriteria();
- if ($criteria->keyContainsValue(CcFilesPeer::ID) ) {
- throw new PropelException('Cannot insert a value for auto-increment primary key ('.CcFilesPeer::ID.')');
- }
- $pk = BasePeer::doInsert($criteria, $con);
- $affectedRows += 1;
- $this->setDbId($pk); //[IMV] update autoincrement primary key
- $this->setNew(false);
- } else {
- $affectedRows += CcFilesPeer::doUpdate($this, $con);
- }
- $this->resetModified(); // [HL] After being saved an object is no longer 'modified'
- }
- if ($this->collCcShowInstancess !== null) {
- foreach ($this->collCcShowInstancess as $referrerFK) {
- if (!$referrerFK->isDeleted()) {
- $affectedRows += $referrerFK->save($con);
- }
- }
- }
- if ($this->collCcPlaylistcontentss !== null) {
- foreach ($this->collCcPlaylistcontentss as $referrerFK) {
- if (!$referrerFK->isDeleted()) {
- $affectedRows += $referrerFK->save($con);
- }
- }
- }
- if ($this->collCcBlockcontentss !== null) {
- foreach ($this->collCcBlockcontentss as $referrerFK) {
- if (!$referrerFK->isDeleted()) {
- $affectedRows += $referrerFK->save($con);
- }
- }
- }
- if ($this->collCcSchedules !== null) {
- foreach ($this->collCcSchedules as $referrerFK) {
- if (!$referrerFK->isDeleted()) {
- $affectedRows += $referrerFK->save($con);
- }
- }
- }
- if ($this->collCcPlayoutHistorys !== null) {
- foreach ($this->collCcPlayoutHistorys as $referrerFK) {
- if (!$referrerFK->isDeleted()) {
- $affectedRows += $referrerFK->save($con);
- }
- }
- }
- $this->alreadyInSave = false;
- }
- return $affectedRows;
- } // doSave()
- /**
- * Array of ValidationFailed objects.
- * @var array ValidationFailed[]
- */
- protected $validationFailures = array();
- /**
- * Gets any ValidationFailed objects that resulted from last call to validate().
- *
- *
- * @return array ValidationFailed[]
- * @see validate()
- */
- public function getValidationFailures()
- {
- return $this->validationFailures;
- }
- /**
- * Validates the objects modified field values and all objects related to this table.
- *
- * If $columns is either a column name or an array of column names
- * only those columns are validated.
- *
- * @param mixed $columns Column name or an array of column names.
- * @return boolean Whether all columns pass validation.
- * @see doValidate()
- * @see getValidationFailures()
- */
- public function validate($columns = null)
- {
- $res = $this->doValidate($columns);
- if ($res === true) {
- $this->validationFailures = array();
- return true;
- } else {
- $this->validationFailures = $res;
- return false;
- }
- }
- /**
- * This function performs the validation work for complex object models.
- *
- * In addition to checking the current object, all related objects will
- * also be validated. If all pass then <code>true</code> is returned; otherwise
- * an aggreagated array of ValidationFailed objects will be returned.
- *
- * @param array $columns Array of column names to validate.
- * @return mixed <code>true</code> if all validations pass; array of <code>ValidationFailed</code> objets otherwise.
- */
- protected function doValidate($columns = null)
- {
- if (!$this->alreadyInValidation) {
- $this->alreadyInValidation = true;
- $retval = null;
- $failureMap = array();
- // We call the validate method on the following object(s) if they
- // were passed to this object by their coresponding set
- // method. This object relates to these object(s) by a
- // foreign key reference.
- if ($this->aFkOwner !== null) {
- if (!$this->aFkOwner->validate($columns)) {
- $failureMap = array_merge($failureMap, $this->aFkOwner->getValidationFailures());
- }
- }
- if ($this->aCcSubjsRelatedByDbEditedby !== null) {
- if (!$this->aCcSubjsRelatedByDbEditedby->validate($columns)) {
- $failureMap = array_merge($failureMap, $this->aCcSubjsRelatedByDbEditedby->getValidationFailures());
- }
- }
- if ($this->aCcMusicDirs !== null) {
- if (!$this->aCcMusicDirs->validate($columns)) {
- $failureMap = array_merge($failureMap, $this->aCcMusicDirs->getValidationFailures());
- }
- }
- if (($retval = CcFilesPeer::doValidate($this, $columns)) !== true) {
- $failureMap = array_merge($failureMap, $retval);
- }
- if ($this->collCcShowInstancess !== null) {
- foreach ($this->collCcShowInstancess as $referrerFK) {
- if (!$referrerFK->validate($columns)) {
- $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
- }
- }
- }
- if ($this->collCcPlaylistcontentss !== null) {
- foreach ($this->collCcPlaylistcontentss as $referrerFK) {
- if (!$referrerFK->validate($columns)) {
- $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
- }
- }
- }
- if ($this->collCcBlockcontentss !== null) {
- foreach ($this->collCcBlockcontentss as $referrerFK) {
- if (!$referrerFK->validate($columns)) {
- $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
- }
- }
- }
- if ($this->collCcSchedules !== null) {
- foreach ($this->collCcSchedules as $referrerFK) {
- if (!$referrerFK->validate($columns)) {
- $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
- }
- }
- }
- if ($this->collCcPlayoutHistorys !== null) {
- foreach ($this->collCcPlayoutHistorys as $referrerFK) {
- if (!$referrerFK->validate($columns)) {
- $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
- }
- }
- }
- $this->alreadyInValidation = false;
- }
- return (!empty($failureMap) ? $failureMap : true);
- }
- /**
- * Retrieves a field from the object by name passed in as a string.
- *
- * @param string $name name
- * @param string $type The type of fieldname the $name is of:
- * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME
- * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM
- * @return mixed Value of field.
- */
- public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
- {
- $pos = CcFilesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
- $field = $this->getByPosition($pos);
- return $field;
- }
- /**
- * Retrieves a field from the object by Position as specified in the xml schema.
- * Zero-based.
- *
- * @param int $pos position in xml schema
- * @return mixed Value of field at $pos
- */
- public function getByPosition($pos)
- {
- switch($pos) {
- case 0:
- return $this->getDbId();
- break;
- case 1:
- return $this->getDbName();
- break;
- case 2:
- return $this->getDbMime();
- break;
- case 3:
- return $this->getDbFtype();
- break;
- case 4:
- return $this->getDbDirectory();
- break;
- case 5:
- return $this->getDbFilepath();
- break;
- case 6:
- return $this->getDbState();
- break;
- case 7:
- return $this->getDbCurrentlyaccessing();
- break;
- case 8:
- return $this->getDbEditedby();
- break;
- case 9:
- return $this->getDbMtime();
- break;
- case 10:
- return $this->getDbUtime();
- break;
- case 11:
- return $this->getDbLPtime();
- break;
- case 12:
- return $this->getDbMd5();
- break;
- case 13:
- return $this->getDbTrackTitle();
- break;
- case 14:
- return $this->getDbArtistName();
- break;
- case 15:
- return $this->getDbBitRate();
- break;
- case 16:
- return $this->getDbSampleRate();
- break;
- case 17:
- return $this->getDbFormat();
- break;
- case 18:
- return $this->getDbLength();
- break;
- case 19:
- return $this->getDbAlbumTitle();
- break;
- case 20:
- return $this->getDbGenre();
- break;
- case 21:
- return $this->getDbComments();
- break;
- case 22:
- return $this->getDbYear();
- break;
- case 23:
- return $this->getDbTrackNumber();
- break;
- case 24:
- return $this->getDbChannels();
- break;
- case 25:
- return $this->getDbUrl();
- break;
- case 26:
- return $this->getDbBpm();
- break;
- case 27:
- return $this->getDbRating();
- break;
- case 28:
- return $this->getDbEncodedBy();
- break;
- case 29:
- return $this->getDbDiscNumber();
- break;
- case 30:
- return $this->getDbMood();
- break;
- case 31:
- return $this->getDbLabel();
- break;
- case 32:
- return $this->getDbComposer();
- break;
- case 33:
- return $this->getDbEncoder();
- break;
- case 34:
- return $this->getDbChecksum();
- break;
- case 35:
- return $this->getDbLyrics();
- break;
- case 36:
- return $this->getDbOrchestra();
- break;
- case 37:
- return $this->getDbConductor();
- break;
- case 38:
- return $this->getDbLyricist();
- break;
- case 39:
- return $this->getDbOriginalLyricist();
- break;
- case 40:
- return $this->getDbRadioStationName();
- break;
- case 41:
- return $this->getDbInfoUrl();
- break;
- case 42:
- return $this->getDbArtistUrl();
- break;
- case 43:
- return $this->getDbAudioSourceUrl();
- break;
- case 44:
- return $this->getDbRadioStationUrl();
- break;
- case 45:
- return $this->getDbBuyThisUrl();
- break;
- case 46:
- return $this->getDbIsrcNumber();
- break;
- case 47:
- return $this->getDbCatalogNumber();
- break;
- case 48:
- return $this->getDbOriginalArtist();
- break;
- case 49:
- return $this->getDbCopyright();
- break;
- case 50:
- return $this->getDbReportDatetime();
- break;
- case 51:
- return $this->getDbReportLocation();
- break;
- case 52:
- return $this->getDbReportOrganization();
- break;
- case 53:
- return $this->getDbSubject();
- break;
- case 54:
- return $this->getDbContributor();
- break;
- case 55:
- return $this->getDbLanguage();
- break;
- case 56:
- return $this->getDbFileExists();
- break;
- case 57:
- return $this->getDbSoundcloudId();
- break;
- case 58:
- return $this->getDbSoundcloudErrorCode();
- break;
- case 59:
- return $this->getDbSoundcloudErrorMsg();
- break;
- case 60:
- return $this->getDbSoundcloudLinkToFile();
- break;
- case 61:
- return $this->getDbSoundCloundUploadTime();
- break;
- case 62:
- return $this->getDbReplayGain();
- break;
- case 63:
- return $this->getDbOwnerId();
- break;
- case 64:
- return $this->getDbCuein();
- break;
- case 65:
- return $this->getDbCueout();
- break;
- case 66:
- return $this->getDbSilanCheck();
- break;
- case 67:
- return $this->getDbHidden();
- break;
- case 68:
- return $this->getDbIsScheduled();
- break;
- case 69:
- return $this->getDbIsPlaylist();
- break;
- default:
- return null;
- break;
- } // switch()
- }
- /**
- * Exports the object as an array.
- *
- * You can specify the key type of the array by passing one of the class
- * type constants.
- *
- * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME,
- * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM.
- * Defaults to BasePeer::TYPE_PHPNAME.
- * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE.
- * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE.
- *
- * @return array an associative array containing the field names (as keys) and field values
- */
- public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $includeForeignObjects = false)
- {
- $keys = CcFilesPeer::getFieldNames($keyType);
- $result = array(
- $keys[0] => $this->getDbId(),
- $keys[1] => $this->getDbName(),
- $keys[2] => $this->getDbMime(),
- $keys[3] => $this->getDbFtype(),
- $keys[4] => $this->getDbDirectory(),
- $keys[5] => $this->getDbFilepath(),
- $keys[6] => $this->getDbState(),
- $keys[7] => $this->getDbCurrentlyaccessing(),
- $keys[8] => $this->getDbEditedby(),
- $keys[9] => $this->getDbMtime(),
- $keys[10] => $this->getDbUtime(),
- $keys[11] => $this->getDbLPtime(),
- $keys[12] => $this->getDbMd5(),
- $keys[13] => $this->getDbTrackTitle(),
- $keys[14] => $this->getDbArtistName(),
- $keys[15] => $this->getDbBitRate(),
- $keys[16] => $this->getDbSampleRate(),
- $keys[17] => $this->getDbFormat(),
- $keys[18] => $this->getDbLength(),
- $keys[19] => $this->getDbAlbumTitle(),
- $keys[20] => $this->getDbGenre(),
- $keys[21] => $this->getDbComments(),
- $keys[22] => $this->getDbYear(),
- $keys[23] => $this->getDbTrackNumber(),
- $keys[24] => $this->getDbChannels(),
- $keys[25] => $this->getDbUrl(),
- $keys[26] => $this->getDbBpm(),
- $keys[27] => $this->getDbRating(),
- $keys[28] => $this->getDbEncodedBy(),
- $keys[29] => $this->getDbDiscNumber(),
- $keys[30] => $this->getDbMood(),
- $keys[31] => $this->getDbLabel(),
- $keys[32] => $this->getDbComposer(),
- $keys[33] => $this->getDbEncoder(),
- $keys[34] => $this->getDbChecksum(),
- $keys[35] => $this->getDbLyrics(),
- $keys[36] => $this->getDbOrchestra(),
- $keys[37] => $this->getDbConductor(),
- $keys[38] => $this->getDbLyricist(),
- $keys[39] => $this->getDbOriginalLyricist(),
- $keys[40] => $this->getDbRadioStationName(),
- $keys[41] => $this->getDbInfoUrl(),
- $keys[42] => $this->getDbArtistUrl(),
- $keys[43] => $this->getDbAudioSourceUrl(),
- $keys[44] => $this->getDbRadioStationUrl(),
- $keys[45] => $this->getDbBuyThisUrl(),
- $keys[46] => $this->getDbIsrcNumber(),
- $keys[47] => $this->getDbCatalogNumber(),
- $keys[48] => $this->getDbOriginalArtist(),
- $keys[49] => $this->getDbCopyright(),
- $keys[50] => $this->getDbReportDatetime(),
- $keys[51] => $this->getDbReportLocation(),
- $keys[52] => $this->getDbReportOrganization(),
- $keys[53] => $this->getDbSubject(),
- $keys[54] => $this->getDbContributor(),
- $keys[55] => $this->getDbLanguage(),
- $keys[56] => $this->getDbFileExists(),
- $keys[57] => $this->getDbSoundcloudId(),
- $keys[58] => $this->getDbSoundcloudErrorCode(),
- $keys[59] => $this->getDbSoundcloudErrorMsg(),
- $keys[60] => $this->getDbSoundcloudLinkToFile(),
- $keys[61] => $this->getDbSoundCloundUploadTime(),
- $keys[62] => $this->getDbReplayGain(),
- $keys[63] => $this->getDbOwnerId(),
- $keys[64] => $this->getDbCuein(),
- $keys[65] => $this->getDbCueout(),
- $keys[66] => $this->getDbSilanCheck(),
- $keys[67] => $this->getDbHidden(),
- $keys[68] => $this->getDbIsScheduled(),
- $keys[69] => $this->getDbIsPlaylist(),
- );
- if ($includeForeignObjects) {
- if (null !== $this->aFkOwner) {
- $result['FkOwner'] = $this->aFkOwner->toArray($keyType, $includeLazyLoadColumns, true);
- }
- if (null !== $this->aCcSubjsRelatedByDbEditedby) {
- $result['CcSubjsRelatedByDbEditedby'] = $this->aCcSubjsRelatedByDbEditedby->toArray($keyType, $includeLazyLoadColumns, true);
- }
- if (null !== $this->aCcMusicDirs) {
- $result['CcMusicDirs'] = $this->aCcMusicDirs->toArray($keyType, $includeLazyLoadColumns, true);
- }
- }
- return $result;
- }
- /**
- * Sets a field from the object by name passed in as a string.
- *
- * @param string $name peer name
- * @param mixed $value field value
- * @param string $type The type of fieldname the $name is of:
- * one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME
- * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM
- * @return void
- */
- public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
- {
- $pos = CcFilesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
- return $this->setByPosition($pos, $value);
- }
- /**
- * Sets a field from the object by Position as specified in the xml schema.
- * Zero-based.
- *
- * @param int $pos position in xml schema
- * @param mixed $value field value
- * @return void
- */
- public function setByPosition($pos, $value)
- {
- switch($pos) {
- case 0:
- $this->setDbId($value);
- break;
- case 1:
- $this->setDbName($value);
- break;
- case 2:
- $this->setDbMime($value);
- break;
- case 3:
- $this->setDbFtype($value);
- break;
- case 4:
- $this->setDbDirectory($value);
- break;
- case 5:
- $this->setDbFilepath($value);
- break;
- case 6:
- $this->setDbState($value);
- break;
- case 7:
- $this->setDbCurrentlyaccessing($value);
- break;
- case 8:
- $this->setDbEditedby($value);
- break;
- case 9:
- $this->setDbMtime($value);
- break;
- case 10:
- $this->setDbUtime($value);
- break;
- case 11:
- $this->setDbLPtime($value);
- break;
- case 12:
- $this->setDbMd5($value);
- break;
- case 13:
- $this->setDbTrackTitle($value);
- break;
- case 14:
- $this->setDbArtistName($value);
- break;
- case 15:
- $this->setDbBitRate($value);
- break;
- case 16:
- $this->setDbSampleRate($value);
- break;
- case 17:
- $this->setDbFormat($value);
- break;
- case 18:
- $this->setDbLength($value);
- break;
- case 19:
- $this->setDbAlbumTitle($value);
- break;
- case 20:
- $this->setDbGenre($value);
- break;
- case 21:
- $this->setDbComments($value);
- break;
- case 22:
- $this->setDbYear($value);
- break;
- case 23:
- $this->setDbTrackNumber($value);
- break;
- case 24:
- $this->setDbChannels($value);
- break;
- case 25:
- $this->setDbUrl($value);
- break;
- case 26:
- $this->setDbBpm($value);
- break;
- case 27:
- $this->setDbRating($value);
- break;
- case 28:
- $this->setDbEncodedBy($value);
- break;
- case 29:
- $this->setDbDiscNumber($value);
- break;
- case 30:
- $this->setDbMood($value);
- break;
- case 31:
- $this->setDbLabel($value);
- break;
- case 32:
- $this->setDbComposer($value);
- break;
- case 33:
- $this->setDbEncoder($value);
- break;
- case 34:
- $this->setDbChecksum($value);
- break;
- case 35:
- $this->setDbLyrics($value);
- break;
- case 36:
- $this->setDbOrchestra($value);
- break;
- case 37:
- $this->setDbConductor($value);
- break;
- case 38:
- $this->setDbLyricist($value);
- break;
- case 39:
- $this->setDbOriginalLyricist($value);
- break;
- case 40:
- $this->setDbRadioStationName($value);
- break;
- case 41:
- $this->setDbInfoUrl($value);
- break;
- case 42:
- $this->setDbArtistUrl($value);
- break;
- case 43:
- $this->setDbAudioSourceUrl($value);
- break;
- case 44:
- $this->setDbRadioStationUrl($value);
- break;
- case 45:
- $this->setDbBuyThisUrl($value);
- break;
- case 46:
- $this->setDbIsrcNumber($value);
- break;
- case 47:
- $this->setDbCatalogNumber($value);
- break;
- case 48:
- $this->setDbOriginalArtist($value);
- break;
- case 49:
- $this->setDbCopyright($value);
- break;
- case 50:
- $this->setDbReportDatetime($value);
- break;
- case 51:
- $this->setDbReportLocation($value);
- break;
- case 52:
- $this->setDbReportOrganization($value);
- break;
- case 53:
- $this->setDbSubject($value);
- break;
- case 54:
- $this->setDbContributor($value);
- break;
- case 55:
- $this->setDbLanguage($value);
- break;
- case 56:
- $this->setDbFileExists($value);
- break;
- case 57:
- $this->setDbSoundcloudId($value);
- break;
- case 58:
- $this->setDbSoundcloudErrorCode($value);
- break;
- case 59:
- $this->setDbSoundcloudErrorMsg($value);
- break;
- case 60:
- $this->setDbSoundcloudLinkToFile($value);
- break;
- case 61:
- $this->setDbSoundCloundUploadTime($value);
- break;
- case 62:
- $this->setDbReplayGain($value);
- break;
- case 63:
- $this->setDbOwnerId($value);
- break;
- case 64:
- $this->setDbCuein($value);
- break;
- case 65:
- $this->setDbCueout($value);
- break;
- case 66:
- $this->setDbSilanCheck($value);
- break;
- case 67:
- $this->setDbHidden($value);
- break;
- case 68:
- $this->setDbIsScheduled($value);
- break;
- case 69:
- $this->setDbIsPlaylist($value);
- break;
- } // switch()
- }
- /**
- * Populates the object using an array.
- *
- * This is particularly useful when populating an object from one of the
- * request arrays (e.g. $_POST). This method goes through the column
- * names, checking to see whether a matching key exists in populated
- * array. If so the setByName() method is called for that column.
- *
- * You can specify the key type of the array by additionally passing one
- * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME,
- * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM.
- * The default key type is the column's phpname (e.g. 'AuthorId')
- *
- * @param array $arr An array to populate the object from.
- * @param string $keyType The type of keys the array uses.
- * @return void
- */
- public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
- {
- $keys = CcFilesPeer::getFieldNames($keyType);
- if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]);
- if (array_key_exists($keys[1], $arr)) $this->setDbName($arr[$keys[1]]);
- if (array_key_exists($keys[2], $arr)) $this->setDbMime($arr[$keys[2]]);
- if (array_key_exists($keys[3], $arr)) $this->setDbFtype($arr[$keys[3]]);
- if (array_key_exists($keys[4], $arr)) $this->setDbDirectory($arr[$keys[4]]);
- if (array_key_exists($keys[5], $arr)) $this->setDbFilepath($arr[$keys[5]]);
- if (array_key_exists($keys[6], $arr)) $this->setDbState($arr[$keys[6]]);
- if (array_key_exists($keys[7], $arr)) $this->setDbCurrentlyaccessing($arr[$keys[7]]);
- if (array_key_exists($keys[8], $arr)) $this->setDbEditedby($arr[$keys[8]]);
- if (array_key_exists($keys[9], $arr)) $this->setDbMtime($arr[$keys[9]]);
- if (array_key_exists($keys[10], $arr)) $this->setDbUtime($arr[$keys[10]]);
- if (array_key_exists($keys[11], $arr)) $this->setDbLPtime($arr[$keys[11]]);
- if (array_key_exists($keys[12], $arr)) $this->setDbMd5($arr[$keys[12]]);
- if (array_key_exists($keys[13], $arr)) $this->setDbTrackTitle($arr[$keys[13]]);
- if (array_key_exists($keys[14], $arr)) $this->setDbArtistName($arr[$keys[14]]);
- if (array_key_exists($keys[15], $arr)) $this->setDbBitRate($arr[$keys[15]]);
- if (array_key_exists($keys[16], $arr)) $this->setDbSampleRate($arr[$keys[16]]);
- if (array_key_exists($keys[17], $arr)) $this->setDbFormat($arr[$keys[17]]);
- if (array_key_exists($keys[18], $arr)) $this->setDbLength($arr[$keys[18]]);
- if (array_key_exists($keys[19], $arr)) $this->setDbAlbumTitle($arr[$keys[19]]);
- if (array_key_exists($keys[20], $arr)) $this->setDbGenre($arr[$keys[20]]);
- if (array_key_exists($keys[21], $arr)) $this->setDbComments($arr[$keys[21]]);
- if (array_key_exists($keys[22], $arr)) $this->setDbYear($arr[$keys[22]]);
- if (array_key_exists($keys[23], $arr)) $this->setDbTrackNumber($arr[$keys[23]]);
- if (array_key_exists($keys[24], $arr)) $this->setDbChannels($arr[$keys[24]]);
- if (array_key_exists($keys[25], $arr)) $this->setDbUrl($arr[$keys[25]]);
- if (array_key_exists($keys[26], $arr)) $this->setDbBpm($arr[$keys[26]]);
- if (array_key_exists($keys[27], $arr)) $this->setDbRating($arr[$keys[27]]);
- if (array_key_exists($keys[28], $arr)) $this->setDbEncodedBy($arr[$keys[28]]);
- if (array_key_exists($keys[29], $arr)) $this->setDbDiscNumber($arr[$keys[29]]);
- if (array_key_exists($keys[30], $arr)) $this->setDbMood($arr[$keys[30]]);
- if (array_key_exists($keys[31], $arr)) $this->setDbLabel($arr[$keys[31]]);
- if (array_key_exists($keys[32], $arr)) $this->setDbComposer($arr[$keys[32]]);
- if (array_key_exists($keys[33], $arr)) $this->setDbEncoder($arr[$keys[33]]);
- if (array_key_exists($keys[34], $arr)) $this->setDbChecksum($arr[$keys[34]]);
- if (array_key_exists($keys[35], $arr)) $this->setDbLyrics($arr[$keys[35]]);
- if (array_key_exists($keys[36], $arr)) $this->setDbOrchestra($arr[$keys[36]]);
- if (array_key_exists($keys[37], $arr)) $this->setDbConductor($arr[$keys[37]]);
- if (array_key_exists($keys[38], $arr)) $this->setDbLyricist($arr[$keys[38]]);
- if (array_key_exists($keys[39], $arr)) $this->setDbOriginalLyricist($arr[$keys[39]]);
- if (array_key_exists($keys[40], $arr)) $this->setDbRadioStationName($arr[$keys[40]]);
- if (array_key_exists($keys[41], $arr)) $this->setDbInfoUrl($arr[$keys[41]]);
- if (array_key_exists($keys[42], $arr)) $this->setDbArtistUrl($arr[$keys[42]]);
- if (array_key_exists($keys[43], $arr)) $this->setDbAudioSourceUrl($arr[$keys[43]]);
- if (array_key_exists($keys[44], $arr)) $this->setDbRadioStationUrl($arr[$keys[44]]);
- if (array_key_exists($keys[45], $arr)) $this->setDbBuyThisUrl($arr[$keys[45]]);
- if (array_key_exists($keys[46], $arr)) $this->setDbIsrcNumber($arr[$keys[46]]);
- if (array_key_exists($keys[47], $arr)) $this->setDbCatalogNumber($arr[$keys[47]]);
- if (array_key_exists($keys[48], $arr)) $this->setDbOriginalArtist($arr[$keys[48]]);
- if (array_key_exists($keys[49], $arr)) $this->setDbCopyright($arr[$keys[49]]);
- if (array_key_exists($keys[50], $arr)) $this->setDbReportDatetime($arr[$keys[50]]);
- if (array_key_exists($keys[51], $arr)) $this->setDbReportLocation($arr[$keys[51]]);
- if (array_key_exists($keys[52], $arr)) $this->setDbReportOrganization($arr[$keys[52]]);
- if (array_key_exists($keys[53], $arr)) $this->setDbSubject($arr[$keys[53]]);
- if (array_key_exists($keys[54], $arr)) $this->setDbContributor($arr[$keys[54]]);
- if (array_key_exists($keys[55], $arr)) $this->setDbLanguage($arr[$keys[55]]);
- if (array_key_exists($keys[56], $arr)) $this->setDbFileExists($arr[$keys[56]]);
- if (array_key_exists($keys[57], $arr)) $this->setDbSoundcloudId($arr[$keys[57]]);
- if (array_key_exists($keys[58], $arr)) $this->setDbSoundcloudErrorCode($arr[$keys[58]]);
- if (array_key_exists($keys[59], $arr)) $this->setDbSoundcloudErrorMsg($arr[$keys[59]]);
- if (array_key_exists($keys[60], $arr)) $this->setDbSoundcloudLinkToFile($arr[$keys[60]]);
- if (array_key_exists($keys[61], $arr)) $this->setDbSoundCloundUploadTime($arr[$keys[61]]);
- if (array_key_exists($keys[62], $arr)) $this->setDbReplayGain($arr[$keys[62]]);
- if (array_key_exists($keys[63], $arr)) $this->setDbOwnerId($arr[$keys[63]]);
- if (array_key_exists($keys[64], $arr)) $this->setDbCuein($arr[$keys[64]]);
- if (array_key_exists($keys[65], $arr)) $this->setDbCueout($arr[$keys[65]]);
- if (array_key_exists($keys[66], $arr)) $this->setDbSilanCheck($arr[$keys[66]]);
- if (array_key_exists($keys[67], $arr)) $this->setDbHidden($arr[$keys[67]]);
- if (array_key_exists($keys[68], $arr)) $this->setDbIsScheduled($arr[$keys[68]]);
- if (array_key_exists($keys[69], $arr)) $this->setDbIsPlaylist($arr[$keys[69]]);
- }
- /**
- * Build a Criteria object containing the values of all modified columns in this object.
- *
- * @return Criteria The Criteria object containing all modified values.
- */
- public function buildCriteria()
- {
- $criteria = new Criteria(CcFilesPeer::DATABASE_NAME);
- if ($this->isColumnModified(CcFilesPeer::ID)) $criteria->add(CcFilesPeer::ID, $this->id);
- if ($this->isColumnModified(CcFilesPeer::NAME)) $criteria->add(CcFilesPeer::NAME, $this->name);
- if ($this->isColumnModified(CcFilesPeer::MIME)) $criteria->add(CcFilesPeer::MIME, $this->mime);
- if ($this->isColumnModified(CcFilesPeer::FTYPE)) $criteria->add(CcFilesPeer::FTYPE, $this->ftype);
- if ($this->isColumnModified(CcFilesPeer::DIRECTORY)) $criteria->add(CcFilesPeer::DIRECTORY, $this->directory);
- if ($this->isColumnModified(CcFilesPeer::FILEPATH)) $criteria->add(CcFilesPeer::FILEPATH, $this->filepath);
- if ($this->isColumnModified(CcFilesPeer::STATE)) $criteria->add(CcFilesPeer::STATE, $this->state);
- if ($this->isColumnModified(CcFilesPeer::CURRENTLYACCESSING)) $criteria->add(CcFilesPeer::CURRENTLYACCESSING, $this->currentlyaccessing);
- if ($this->isColumnModified(CcFilesPeer::EDITEDBY)) $criteria->add(CcFilesPeer::EDITEDBY, $this->editedby);
- if ($this->isColumnModified(CcFilesPeer::MTIME)) $criteria->add(CcFilesPeer::MTIME, $this->mtime);
- if ($this->isColumnModified(CcFilesPeer::UTIME)) $criteria->add(CcFilesPeer::UTIME, $this->utime);
- if ($this->isColumnModified(CcFilesPeer::LPTIME)) $criteria->add(CcFilesPeer::LPTIME, $this->lptime);
- if ($this->isColumnModified(CcFilesPeer::MD5)) $criteria->add(CcFilesPeer::MD5, $this->md5);
- if ($this->isColumnModified(CcFilesPeer::TRACK_TITLE)) $criteria->add(CcFilesPeer::TRACK_TITLE, $this->track_title);
- if ($this->isColumnModified(CcFilesPeer::ARTIST_NAME)) $criteria->add(CcFilesPeer::ARTIST_NAME, $this->artist_name);
- if ($this->isColumnModified(CcFilesPeer::BIT_RATE)) $criteria->add(CcFilesPeer::BIT_RATE, $this->bit_rate);
- if ($this->isColumnModified(CcFilesPeer::SAMPLE_RATE)) $criteria->add(CcFilesPeer::SAMPLE_RATE, $this->sample_rate);
- if ($this->isColumnModified(CcFilesPeer::FORMAT)) $criteria->add(CcFilesPeer::FORMAT, $this->format);
- if ($this->isColumnModified(CcFilesPeer::LENGTH)) $criteria->add(CcFilesPeer::LENGTH, $this->length);
- if ($this->isColumnModified(CcFilesPeer::ALBUM_TITLE)) $criteria->add(CcFilesPeer::ALBUM_TITLE, $this->album_title);
- if ($this->isColumnModified(CcFilesPeer::GENRE)) $criteria->add(CcFilesPeer::GENRE, $this->genre);
- if ($this->isColumnModified(CcFilesPeer::COMMENTS)) $criteria->add(CcFilesPeer::COMMENTS, $this->comments);
- if ($this->isColumnModified(CcFilesPeer::YEAR)) $criteria->add(CcFilesPeer::YEAR, $this->year);
- if ($this->isColumnModified(CcFilesPeer::TRACK_NUMBER)) $criteria->add(CcFilesPeer::TRACK_NUMBER, $this->track_number);
- if ($this->isColumnModified(CcFilesPeer::CHANNELS)) $criteria->add(CcFilesPeer::CHANNELS, $this->channels);
- if ($this->isColumnModified(CcFilesPeer::URL)) $criteria->add(CcFilesPeer::URL, $this->url);
- if ($this->isColumnModified(CcFilesPeer::BPM)) $criteria->add(CcFilesPeer::BPM, $this->bpm);
- if ($this->isColumnModified(CcFilesPeer::RATING)) $criteria->add(CcFilesPeer::RATING, $this->rating);
- if ($this->isColumnModified(CcFilesPeer::ENCODED_BY)) $criteria->add(CcFilesPeer::ENCODED_BY, $this->encoded_by);
- if ($this->isColumnModified(CcFilesPeer::DISC_NUMBER)) $criteria->add(CcFilesPeer::DISC_NUMBER, $this->disc_number);
- if ($this->isColumnModified(CcFilesPeer::MOOD)) $criteria->add(CcFilesPeer::MOOD, $this->mood);
- if ($this->isColumnModified(CcFilesPeer::LABEL)) $criteria->add(CcFilesPeer::LABEL, $this->label);
- if ($this->isColumnModified(CcFilesPeer::COMPOSER)) $criteria->add(CcFilesPeer::COMPOSER, $this->composer);
- if ($this->isColumnModified(CcFilesPeer::ENCODER)) $criteria->add(CcFilesPeer::ENCODER, $this->encoder);
- if ($this->isColumnModified(CcFilesPeer::CHECKSUM)) $criteria->add(CcFilesPeer::CHECKSUM, $this->checksum);
- if ($this->isColumnModified(CcFilesPeer::LYRICS)) $criteria->add(CcFilesPeer::LYRICS, $this->lyrics);
- if ($this->isColumnModified(CcFilesPeer::ORCHESTRA)) $criteria->add(CcFilesPeer::ORCHESTRA, $this->orchestra);
- if ($this->isColumnModified(CcFilesPeer::CONDUCTOR)) $criteria->add(CcFilesPeer::CONDUCTOR, $this->conductor);
- if ($this->isColumnModified(CcFilesPeer::LYRICIST)) $criteria->add(CcFilesPeer::LYRICIST, $this->lyricist);
- if ($this->isColumnModified(CcFilesPeer::ORIGINAL_LYRICIST)) $criteria->add(CcFilesPeer::ORIGINAL_LYRICIST, $this->original_lyricist);
- if ($this->isColumnModified(CcFilesPeer::RADIO_STATION_NAME)) $criteria->add(CcFilesPeer::RADIO_STATION_NAME, $this->radio_station_name);
- if ($this->isColumnModified(CcFilesPeer::INFO_URL)) $criteria->add(CcFilesPeer::INFO_URL, $this->info_url);
- if ($this->isColumnModified(CcFilesPeer::ARTIST_URL)) $criteria->add(CcFilesPeer::ARTIST_URL, $this->artist_url);
- if ($this->isColumnModified(CcFilesPeer::AUDIO_SOURCE_URL)) $criteria->add(CcFilesPeer::AUDIO_SOURCE_URL, $this->audio_source_url);
- if ($this->isColumnModified(CcFilesPeer::RADIO_STATION_URL)) $criteria->add(CcFilesPeer::RADIO_STATION_URL, $this->radio_station_url);
- if ($this->isColumnModified(CcFilesPeer::BUY_THIS_URL)) $criteria->add(CcFilesPeer::BUY_THIS_URL, $this->buy_this_url);
- if ($this->isColumnModified(CcFilesPeer::ISRC_NUMBER)) $criteria->add(CcFilesPeer::ISRC_NUMBER, $this->isrc_number);
- if ($this->isColumnModified(CcFilesPeer::CATALOG_NUMBER)) $criteria->add(CcFilesPeer::CATALOG_NUMBER, $this->catalog_number);
- if ($this->isColumnModified(CcFilesPeer::ORIGINAL_ARTIST)) $criteria->add(CcFilesPeer::ORIGINAL_ARTIST, $this->original_artist);
- if ($this->isColumnModified(CcFilesPeer::COPYRIGHT)) $criteria->add(CcFilesPeer::COPYRIGHT, $this->copyright);
- if ($this->isColumnModified(CcFilesPeer::REPORT_DATETIME)) $criteria->add(CcFilesPeer::REPORT_DATETIME, $this->report_datetime);
- if ($this->isColumnModified(CcFilesPeer::REPORT_LOCATION)) $criteria->add(CcFilesPeer::REPORT_LOCATION, $this->report_location);
- if ($this->isColumnModified(CcFilesPeer::REPORT_ORGANIZATION)) $criteria->add(CcFilesPeer::REPORT_ORGANIZATION, $this->report_organization);
- if ($this->isColumnModified(CcFilesPeer::SUBJECT)) $criteria->add(CcFilesPeer::SUBJECT, $this->subject);
- if ($this->isColumnModified(CcFilesPeer::CONTRIBUTOR)) $criteria->add(CcFilesPeer::CONTRIBUTOR, $this->contributor);
- if ($this->isColumnModified(CcFilesPeer::LANGUAGE)) $criteria->add(CcFilesPeer::LANGUAGE, $this->language);
- if ($this->isColumnModified(CcFilesPeer::FILE_EXISTS)) $criteria->add(CcFilesPeer::FILE_EXISTS, $this->file_exists);
- if ($this->isColumnModified(CcFilesPeer::SOUNDCLOUD_ID)) $criteria->add(CcFilesPeer::SOUNDCLOUD_ID, $this->soundcloud_id);
- if ($this->isColumnModified(CcFilesPeer::SOUNDCLOUD_ERROR_CODE)) $criteria->add(CcFilesPeer::SOUNDCLOUD_ERROR_CODE, $this->soundcloud_error_code);
- if ($this->isColumnModified(CcFilesPeer::SOUNDCLOUD_ERROR_MSG)) $criteria->add(CcFilesPeer::SOUNDCLOUD_ERROR_MSG, $this->soundcloud_error_msg);
- if ($this->isColumnModified(CcFilesPeer::SOUNDCLOUD_LINK_TO_FILE)) $criteria->add(CcFilesPeer::SOUNDCLOUD_LINK_TO_FILE, $this->soundcloud_link_to_file);
- if ($this->isColumnModified(CcFilesPeer::SOUNDCLOUD_UPLOAD_TIME)) $criteria->add(CcFilesPeer::SOUNDCLOUD_UPLOAD_TIME, $this->soundcloud_upload_time);
- if ($this->isColumnModified(CcFilesPeer::REPLAY_GAIN)) $criteria->add(CcFilesPeer::REPLAY_GAIN, $this->replay_gain);
- if ($this->isColumnModified(CcFilesPeer::OWNER_ID)) $criteria->add(CcFilesPeer::OWNER_ID, $this->owner_id);
- if ($this->isColumnModified(CcFilesPeer::CUEIN)) $criteria->add(CcFilesPeer::CUEIN, $this->cuein);
- if ($this->isColumnModified(CcFilesPeer::CUEOUT)) $criteria->add(CcFilesPeer::CUEOUT, $this->cueout);
- if ($this->isColumnModified(CcFilesPeer::SILAN_CHECK)) $criteria->add(CcFilesPeer::SILAN_CHECK, $this->silan_check);
- if ($this->isColumnModified(CcFilesPeer::HIDDEN)) $criteria->add(CcFilesPeer::HIDDEN, $this->hidden);
- if ($this->isColumnModified(CcFilesPeer::IS_SCHEDULED)) $criteria->add(CcFilesPeer::IS_SCHEDULED, $this->is_scheduled);
- if ($this->isColumnModified(CcFilesPeer::IS_PLAYLIST)) $criteria->add(CcFilesPeer::IS_PLAYLIST, $this->is_playlist);
- return $criteria;
- }
- /**
- * Builds a Criteria object containing the primary key for this object.
- *
- * Unlike buildCriteria() this method includes the primary key values regardless
- * of whether or not they have been modified.
- *
- * @return Criteria The Criteria object containing value(s) for primary key(s).
- */
- public function buildPkeyCriteria()
- {
- $criteria = new Criteria(CcFilesPeer::DATABASE_NAME);
- $criteria->add(CcFilesPeer::ID, $this->id);
- return $criteria;
- }
- /**
- * Returns the primary key for this object (row).
- * @return int
- */
- public function getPrimaryKey()
- {
- return $this->getDbId();
- }
- /**
- * Generic method to set the primary key (id column).
- *
- * @param int $key Primary key.
- * @return void
- */
- public function setPrimaryKey($key)
- {
- $this->setDbId($key);
- }
- /**
- * Returns true if the primary key for this object is null.
- * @return boolean
- */
- public function isPrimaryKeyNull()
- {
- return null === $this->getDbId();
- }
- /**
- * Sets contents of passed object to values from current object.
- *
- * If desired, this method can also make copies of all associated (fkey referrers)
- * objects.
- *
- * @param object $copyObj An object of CcFiles (or compatible) type.
- * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
- * @throws PropelException
- */
- public function copyInto($copyObj, $deepCopy = false)
- {
- $copyObj->setDbName($this->name);
- $copyObj->setDbMime($this->mime);
- $copyObj->setDbFtype($this->ftype);
- $copyObj->setDbDirectory($this->directory);
- $copyObj->setDbFilepath($this->filepath);
- $copyObj->setDbState($this->state);
- $copyObj->setDbCurrentlyaccessing($this->currentlyaccessing);
- $copyObj->setDbEditedby($this->editedby);
- $copyObj->setDbMtime($this->mtime);
- $copyObj->setDbUtime($this->utime);
- $copyObj->setDbLPtime($this->lptime);
- $copyObj->setDbMd5($this->md5);
- $copyObj->setDbTrackTitle($this->track_title);
- $copyObj->setDbArtistName($this->artist_name);
- $copyObj->setDbBitRate($this->bit_rate);
- $copyObj->setDbSampleRate($this->sample_rate);
- $copyObj->setDbFormat($this->format);
- $copyObj->setDbLength($this->length);
- $copyObj->setDbAlbumTitle($this->album_title);
- $copyObj->setDbGenre($this->genre);
- $copyObj->setDbComments($this->comments);
- $copyObj->setDbYear($this->year);
- $copyObj->setDbTrackNumber($this->track_number);
- $copyObj->setDbChannels($this->channels);
- $copyObj->setDbUrl($this->url);
- $copyObj->setDbBpm($this->bpm);
- $copyObj->setDbRating($this->rating);
- $copyObj->setDbEncodedBy($this->encoded_by);
- $copyObj->setDbDiscNumber($this->disc_number);
- $copyObj->setDbMood($this->mood);
- $copyObj->setDbLabel($this->label);
- $copyObj->setDbComposer($this->composer);
- $copyObj->setDbEncoder($this->encoder);
- $copyObj->setDbChecksum($this->checksum);
- $copyObj->setDbLyrics($this->lyrics);
- $copyObj->setDbOrchestra($this->orchestra);
- $copyObj->setDbConductor($this->conductor);
- $copyObj->setDbLyricist($this->lyricist);
- $copyObj->setDbOriginalLyricist($this->original_lyricist);
- $copyObj->setDbRadioStationName($this->radio_station_name);
- $copyObj->setDbInfoUrl($this->info_url);
- $copyObj->setDbArtistUrl($this->artist_url);
- $copyObj->setDbAudioSourceUrl($this->audio_source_url);
- $copyObj->setDbRadioStationUrl($this->radio_station_url);
- $copyObj->setDbBuyThisUrl($this->buy_this_url);
- $copyObj->setDbIsrcNumber($this->isrc_number);
- $copyObj->setDbCatalogNumber($this->catalog_number);
- $copyObj->setDbOriginalArtist($this->original_artist);
- $copyObj->setDbCopyright($this->copyright);
- $copyObj->setDbReportDatetime($this->report_datetime);
- $copyObj->setDbReportLocation($this->report_location);
- $copyObj->setDbReportOrganization($this->report_organization);
- $copyObj->setDbSubject($this->subject);
- $copyObj->setDbContributor($this->contributor);
- $copyObj->setDbLanguage($this->language);
- $copyObj->setDbFileExists($this->file_exists);
- $copyObj->setDbSoundcloudId($this->soundcloud_id);
- $copyObj->setDbSoundcloudErrorCode($this->soundcloud_error_code);
- $copyObj->setDbSoundcloudErrorMsg($this->soundcloud_error_msg);
- $copyObj->setDbSoundcloudLinkToFile($this->soundcloud_link_to_file);
- $copyObj->setDbSoundCloundUploadTime($this->soundcloud_upload_time);
- $copyObj->setDbReplayGain($this->replay_gain);
- $copyObj->setDbOwnerId($this->owner_id);
- $copyObj->setDbCuein($this->cuein);
- $copyObj->setDbCueout($this->cueout);
- $copyObj->setDbSilanCheck($this->silan_check);
- $copyObj->setDbHidden($this->hidden);
- $copyObj->setDbIsScheduled($this->is_scheduled);
- $copyObj->setDbIsPlaylist($this->is_playlist);
- if ($deepCopy) {
- // important: temporarily setNew(false) because this affects the behavior of
- // the getter/setter methods for fkey referrer objects.
- $copyObj->setNew(false);
- foreach ($this->getCcShowInstancess() as $relObj) {
- if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves
- $copyObj->addCcShowInstances($relObj->copy($deepCopy));
- }
- }
- foreach ($this->getCcPlaylistcontentss() as $relObj) {
- if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves
- $copyObj->addCcPlaylistcontents($relObj->copy($deepCopy));
- }
- }
- foreach ($this->getCcBlockcontentss() as $relObj) {
- if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves
- $copyObj->addCcBlockcontents($relObj->copy($deepCopy));
- }
- }
- foreach ($this->getCcSchedules() as $relObj) {
- if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves
- $copyObj->addCcSchedule($relObj->copy($deepCopy));
- }
- }
- foreach ($this->getCcPlayoutHistorys() as $relObj) {
- if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves
- $copyObj->addCcPlayoutHistory($relObj->copy($deepCopy));
- }
- }
- } // if ($deepCopy)
- $copyObj->setNew(true);
- $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value
- }
- /**
- * Makes a copy of this object that will be inserted as a new row in table when saved.
- * It creates a new object filling in the simple attributes, but skipping any primary
- * keys that are defined for the table.
- *
- * If desired, this method can also make copies of all associated (fkey referrers)
- * objects.
- *
- * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
- * @return CcFiles Clone of current object.
- * @throws PropelException
- */
- public function copy($deepCopy = false)
- {
- // we use get_class(), because this might be a subclass
- $clazz = get_class($this);
- $copyObj = new $clazz();
- $this->copyInto($copyObj, $deepCopy);
- return $copyObj;
- }
- /**
- * Returns a peer instance associated with this om.
- *
- * Since Peer classes are not to have any instance attributes, this method returns the
- * same instance for all member of this class. The method could therefore
- * be static, but this would prevent one from overriding the behavior.
- *
- * @return CcFilesPeer
- */
- public function getPeer()
- {
- if (self::$peer === null) {
- self::$peer = new CcFilesPeer();
- }
- return self::$peer;
- }
- /**
- * Declares an association between this object and a CcSubjs object.
- *
- * @param CcSubjs $v
- * @return CcFiles The current object (for fluent API support)
- * @throws PropelException
- */
- public function setFkOwner(CcSubjs $v = null)
- {
- if ($v === null) {
- $this->setDbOwnerId(NULL);
- } else {
- $this->setDbOwnerId($v->getDbId());
- }
- $this->aFkOwner = $v;
- // Add binding for other direction of this n:n relationship.
- // If this object has already been added to the CcSubjs object, it will not be re-added.
- if ($v !== null) {
- $v->addCcFilesRelatedByDbOwnerId($this);
- }
- return $this;
- }
- /**
- * Get the associated CcSubjs object
- *
- * @param PropelPDO Optional Connection object.
- * @return CcSubjs The associated CcSubjs object.
- * @throws PropelException
- */
- public function getFkOwner(PropelPDO $con = null)
- {
- if ($this->aFkOwner === null && ($this->owner_id !== null)) {
- $this->aFkOwner = CcSubjsQuery::create()->findPk($this->owner_id, $con);
- /* The following can be used additionally to
- guarantee the related object contains a reference
- to this object. This level of coupling may, however, be
- undesirable since it could result in an only partially populated collection
- in the referenced object.
- $this->aFkOwner->addCcFilessRelatedByDbOwnerId($this);
- */
- }
- return $this->aFkOwner;
- }
- /**
- * Declares an association between this object and a CcSubjs object.
- *
- * @param CcSubjs $v
- * @return CcFiles The current object (for fluent API support)
- * @throws PropelException
- */
- public function setCcSubjsRelatedByDbEditedby(CcSubjs $v = null)
- {
- if ($v === null) {
- $this->setDbEditedby(NULL);
- } else {
- $this->setDbEditedby($v->getDbId());
- }
- $this->aCcSubjsRelatedByDbEditedby = $v;
- // Add binding for other direction of this n:n relationship.
- // If this object has already been added to the CcSubjs object, it will not be re-added.
- if ($v !== null) {
- $v->addCcFilesRelatedByDbEditedby($this);
- }
- return $this;
- }
- /**
- * Get the associated CcSubjs object
- *
- * @param PropelPDO Optional Connection object.
- * @return CcSubjs The associated CcSubjs object.
- * @throws PropelException
- */
- public function getCcSubjsRelatedByDbEditedby(PropelPDO $con = null)
- {
- if ($this->aCcSubjsRelatedByDbEditedby === null && ($this->editedby !== null)) {
- $this->aCcSubjsRelatedByDbEditedby = CcSubjsQuery::create()->findPk($this->editedby, $con);
- /* The following can be used additionally to
- guarantee the related object contains a reference
- to this object. This level of coupling may, however, be
- undesirable since it could result in an only partially populated collection
- in the referenced object.
- $this->aCcSubjsRelatedByDbEditedby->addCcFilessRelatedByDbEditedby($this);
- */
- }
- return $this->aCcSubjsRelatedByDbEditedby;
- }
- /**
- * Declares an association between this object and a CcMusicDirs object.
- *
- * @param CcMusicDirs $v
- * @return CcFiles The current object (for fluent API support)
- * @throws PropelException
- */
- public function setCcMusicDirs(CcMusicDirs $v = null)
- {
- if ($v === null) {
- $this->setDbDirectory(NULL);
- } else {
- $this->setDbDirectory($v->getId());
- }
- $this->aCcMusicDirs = $v;
- // Add binding for other direction of this n:n relationship.
- // If this object has already been added to the CcMusicDirs object, it will not be re-added.
- if ($v !== null) {
- $v->addCcFiles($this);
- }
- return $this;
- }
- /**
- * Get the associated CcMusicDirs object
- *
- * @param PropelPDO Optional Connection object.
- * @return CcMusicDirs The associated CcMusicDirs object.
- * @throws PropelException
- */
- public function getCcMusicDirs(PropelPDO $con = null)
- {
- if ($this->aCcMusicDirs === null && ($this->directory !== null)) {
- $this->aCcMusicDirs = CcMusicDirsQuery::create()->findPk($this->directory, $con);
- /* The following can be used additionally to
- guarantee the related object contains a reference
- to this object. This level of coupling may, however, be
- undesirable since it could result in an only partially populated collection
- in the referenced object.
- $this->aCcMusicDirs->addCcFiless($this);
- */
- }
- return $this->aCcMusicDirs;
- }
- /**
- * Clears out the collCcShowInstancess collection
- *
- * This does not modify the database; however, it will remove any associated objects, causing
- * them to be refetched by subsequent calls to accessor method.
- *
- * @return void
- * @see addCcShowInstancess()
- */
- public function clearCcShowInstancess()
- {
- $this->collCcShowInstancess = null; // important to set this to NULL since that means it is uninitialized
- }
- /**
- * Initializes the collCcShowInstancess collection.
- *
- * By default this just sets the collCcShowInstancess collection to an empty array (like clearcollCcShowInstancess());
- * however, you may wish to override this method in your stub class to provide setting appropriate
- * to your application -- for example, setting the initial array to the values stored in database.
- *
- * @return void
- */
- public function initCcShowInstancess()
- {
- $this->collCcShowInstancess = new PropelObjectCollection();
- $this->collCcShowInstancess->setModel('CcShowInstances');
- }
- /**
- * Gets an array of CcShowInstances objects which contain a foreign key that references this object.
- *
- * If the $criteria is not null, it is used to always fetch the results from the database.
- * Otherwise the results are fetched from the database the first time, then cached.
- * Next time the same method is called without $criteria, the cached collection is returned.
- * If this CcFiles is new, it will return
- * an empty collection or the current collection; the criteria is ignored on a new object.
- *
- * @param Criteria $criteria optional Criteria object to narrow the query
- * @param PropelPDO $con optional connection object
- * @return PropelCollection|array CcShowInstances[] List of CcShowInstances objects
- * @throws PropelException
- */
- public function getCcShowInstancess($criteria = null, PropelPDO $con = null)
- {
- if(null === $this->collCcShowInstancess || null !== $criteria) {
- if ($this->isNew() && null === $this->collCcShowInstancess) {
- // return empty collection
- $this->initCcShowInstancess();
- } else {
- $collCcShowInstancess = CcShowInstancesQuery::create(null, $criteria)
- ->filterByCcFiles($this)
- ->find($con);
- if (null !== $criteria) {
- return $collCcShowInstancess;
- }
- $this->collCcShowInstancess = $collCcShowInstancess;
- }
- }
- return $this->collCcShowInstancess;
- }
- /**
- * Returns the number of related CcShowInstances objects.
- *
- * @param Criteria $criteria
- * @param boolean $distinct
- * @param PropelPDO $con
- * @return int Count of related CcShowInstances objects.
- * @throws PropelException
- */
- public function countCcShowInstancess(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
- {
- if(null === $this->collCcShowInstancess || null !== $criteria) {
- if ($this->isNew() && null === $this->collCcShowInstancess) {
- return 0;
- } else {
- $query = CcShowInstancesQuery::create(null, $criteria);
- if($distinct) {
- $query->distinct();
- }
- return $query
- ->filterByCcFiles($this)
- ->count($con);
- }
- } else {
- return count($this->collCcShowInstancess);
- }
- }
- /**
- * Method called to associate a CcShowInstances object to this object
- * through the CcShowInstances foreign key attribute.
- *
- * @param CcShowInstances $l CcShowInstances
- * @return void
- * @throws PropelException
- */
- public function addCcShowInstances(CcShowInstances $l)
- {
- if ($this->collCcShowInstancess === null) {
- $this->initCcShowInstancess();
- }
- if (!$this->collCcShowInstancess->contains($l)) { // only add it if the **same** object is not already associated
- $this->collCcShowInstancess[]= $l;
- $l->setCcFiles($this);
- }
- }
- /**
- * If this collection has already been initialized with
- * an identical criteria, it returns the collection.
- * Otherwise if this CcFiles is new, it will return
- * an empty collection; or if this CcFiles has previously
- * been saved, it will retrieve related CcShowInstancess from storage.
- *
- * This method is protected by default in order to keep the public
- * api reasonable. You can provide public methods for those you
- * actually need in CcFiles.
- *
- * @param Criteria $criteria optional Criteria object to narrow the query
- * @param PropelPDO $con optional connection object
- * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
- * @return PropelCollection|array CcShowInstances[] List of CcShowInstances objects
- */
- public function getCcShowInstancessJoinCcShow($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
- {
- $query = CcShowInstancesQuery::create(null, $criteria);
- $query->joinWith('CcShow', $join_behavior);
- return $this->getCcShowInstancess($query, $con);
- }
- /**
- * If this collection has already been initialized with
- * an identical criteria, it returns the collection.
- * Otherwise if this CcFiles is new, it will return
- * an empty collection; or if this CcFiles has previously
- * been saved, it will retrieve related CcShowInstancess from storage.
- *
- * This method is protected by default in order to keep the public
- * api reasonable. You can provide public methods for those you
- * actually need in CcFiles.
- *
- * @param Criteria $criteria optional Criteria object to narrow the query
- * @param PropelPDO $con optional connection object
- * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
- * @return PropelCollection|array CcShowInstances[] List of CcShowInstances objects
- */
- public function getCcShowInstancessJoinCcShowInstancesRelatedByDbOriginalShow($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
- {
- $query = CcShowInstancesQuery::create(null, $criteria);
- $query->joinWith('CcShowInstancesRelatedByDbOriginalShow', $join_behavior);
- return $this->getCcShowInstancess($query, $con);
- }
- /**
- * Clears out the collCcPlaylistcontentss collection
- *
- * This does not modify the database; however, it will remove any associated objects, causing
- * them to be refetched by subsequent calls to accessor method.
- *
- * @return void
- * @see addCcPlaylistcontentss()
- */
- public function clearCcPlaylistcontentss()
- {
- $this->collCcPlaylistcontentss = null; // important to set this to NULL since that means it is uninitialized
- }
- /**
- * Initializes the collCcPlaylistcontentss collection.
- *
- * By default this just sets the collCcPlaylistcontentss collection to an empty array (like clearcollCcPlaylistcontentss());
- * however, you may wish to override this method in your stub class to provide setting appropriate
- * to your application -- for example, setting the initial array to the values stored in database.
- *
- * @return void
- */
- public function initCcPlaylistcontentss()
- {
- $this->collCcPlaylistcontentss = new PropelObjectCollection();
- $this->collCcPlaylistcontentss->setModel('CcPlaylistcontents');
- }
- /**
- * Gets an array of CcPlaylistcontents objects which contain a foreign key that references this object.
- *
- * If the $criteria is not null, it is used to always fetch the results from the database.
- * Otherwise the results are fetched from the database the first time, then cached.
- * Next time the same method is called without $criteria, the cached collection is returned.
- * If this CcFiles is new, it will return
- * an empty collection or the current collection; the criteria is ignored on a new object.
- *
- * @param Criteria $criteria optional Criteria object to narrow the query
- * @param PropelPDO $con optional connection object
- * @return PropelCollection|array CcPlaylistcontents[] List of CcPlaylistcontents objects
- * @throws PropelException
- */
- public function getCcPlaylistcontentss($criteria = null, PropelPDO $con = null)
- {
- if(null === $this->collCcPlaylistcontentss || null !== $criteria) {
- if ($this->isNew() && null === $this->collCcPlaylistcontentss) {
- // return empty collection
- $this->initCcPlaylistcontentss();
- } else {
- $collCcPlaylistcontentss = CcPlaylistcontentsQuery::create(null, $criteria)
- ->filterByCcFiles($this)
- ->find($con);
- if (null !== $criteria) {
- return $collCcPlaylistcontentss;
- }
- $this->collCcPlaylistcontentss = $collCcPlaylistcontentss;
- }
- }
- return $this->collCcPlaylistcontentss;
- }
- /**
- * Returns the number of related CcPlaylistcontents objects.
- *
- * @param Criteria $criteria
- * @param boolean $distinct
- * @param PropelPDO $con
- * @return int Count of related CcPlaylistcontents objects.
- * @throws PropelException
- */
- public function countCcPlaylistcontentss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
- {
- if(null === $this->collCcPlaylistcontentss || null !== $criteria) {
- if ($this->isNew() && null === $this->collCcPlaylistcontentss) {
- return 0;
- } else {
- $query = CcPlaylistcontentsQuery::create(null, $criteria);
- if($distinct) {
- $query->distinct();
- }
- return $query
- ->filterByCcFiles($this)
- ->count($con);
- }
- } else {
- return count($this->collCcPlaylistcontentss);
- }
- }
- /**
- * Method called to associate a CcPlaylistcontents object to this object
- * through the CcPlaylistcontents foreign key attribute.
- *
- * @param CcPlaylistcontents $l CcPlaylistcontents
- * @return void
- * @throws PropelException
- */
- public function addCcPlaylistcontents(CcPlaylistcontents $l)
- {
- if ($this->collCcPlaylistcontentss === null) {
- $this->initCcPlaylistcontentss();
- }
- if (!$this->collCcPlaylistcontentss->contains($l)) { // only add it if the **same** object is not already associated
- $this->collCcPlaylistcontentss[]= $l;
- $l->setCcFiles($this);
- }
- }
- /**
- * If this collection has already been initialized with
- * an identical criteria, it returns the collection.
- * Otherwise if this CcFiles is new, it will return
- * an empty collection; or if this CcFiles has previously
- * been saved, it will retrieve related CcPlaylistcontentss from storage.
- *
- * This method is protected by default in order to keep the public
- * api reasonable. You can provide public methods for those you
- * actually need in CcFiles.
- *
- * @param Criteria $criteria optional Criteria object to narrow the query
- * @param PropelPDO $con optional connection object
- * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
- * @return PropelCollection|array CcPlaylistcontents[] List of CcPlaylistcontents objects
- */
- public function getCcPlaylistcontentssJoinCcBlock($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
- {
- $query = CcPlaylistcontentsQuery::create(null, $criteria);
- $query->joinWith('CcBlock', $join_behavior);
- return $this->getCcPlaylistcontentss($query, $con);
- }
- /**
- * If this collection has already been initialized with
- * an identical criteria, it returns the collection.
- * Otherwise if this CcFiles is new, it will return
- * an empty collection; or if this CcFiles has previously
- * been saved, it will retrieve related CcPlaylistcontentss from storage.
- *
- * This method is protected by default in order to keep the public
- * api reasonable. You can provide public methods for those you
- * actually need in CcFiles.
- *
- * @param Criteria $criteria optional Criteria object to narrow the query
- * @param PropelPDO $con optional connection object
- * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
- * @return PropelCollection|array CcPlaylistcontents[] List of CcPlaylistcontents objects
- */
- public function getCcPlaylistcontentssJoinCcPlaylist($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
- {
- $query = CcPlaylistcontentsQuery::create(null, $criteria);
- $query->joinWith('CcPlaylist', $join_behavior);
- return $this->getCcPlaylistcontentss($query, $con);
- }
- /**
- * Clears out the collCcBlockcontentss collection
- *
- * This does not modify the database; however, it will remove any associated objects, causing
- * them to be refetched by subsequent calls to accessor method.
- *
- * @return void
- * @see addCcBlockcontentss()
- */
- public function clearCcBlockcontentss()
- {
- $this->collCcBlockcontentss = null; // important to set this to NULL since that means it is uninitialized
- }
- /**
- * Initializes the collCcBlockcontentss collection.
- *
- * By default this just sets the collCcBlockcontentss collection to an empty array (like clearcollCcBlockcontentss());
- * however, you may wish to override this method in your stub class to provide setting appropriate
- * to your application -- for example, setting the initial array to the values stored in database.
- *
- * @return void
- */
- public function initCcBlockcontentss()
- {
- $this->collCcBlockcontentss = new PropelObjectCollection();
- $this->collCcBlockcontentss->setModel('CcBlockcontents');
- }
- /**
- * Gets an array of CcBlockcontents objects which contain a foreign key that references this object.
- *
- * If the $criteria is not null, it is used to always fetch the results from the database.
- * Otherwise the results are fetched from the database the first time, then cached.
- * Next time the same method is called without $criteria, the cached collection is returned.
- * If this CcFiles is new, it will return
- * an empty collection or the current collection; the criteria is ignored on a new object.
- *
- * @param Criteria $criteria optional Criteria object to narrow the query
- * @param PropelPDO $con optional connection object
- * @return PropelCollection|array CcBlockcontents[] List of CcBlockcontents objects
- * @throws PropelException
- */
- public function getCcBlockcontentss($criteria = null, PropelPDO $con = null)
- {
- if(null === $this->collCcBlockcontentss || null !== $criteria) {
- if ($this->isNew() && null === $this->collCcBlockcontentss) {
- // return empty collection
- $this->initCcBlockcontentss();
- } else {
- $collCcBlockcontentss = CcBlockcontentsQuery::create(null, $criteria)
- ->filterByCcFiles($this)
- ->find($con);
- if (null !== $criteria) {
- return $collCcBlockcontentss;
- }
- $this->collCcBlockcontentss = $collCcBlockcontentss;
- }
- }
- return $this->collCcBlockcontentss;
- }
- /**
- * Returns the number of related CcBlockcontents objects.
- *
- * @param Criteria $criteria
- * @param boolean $distinct
- * @param PropelPDO $con
- * @return int Count of related CcBlockcontents objects.
- * @throws PropelException
- */
- public function countCcBlockcontentss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
- {
- if(null === $this->collCcBlockcontentss || null !== $criteria) {
- if ($this->isNew() && null === $this->collCcBlockcontentss) {
- return 0;
- } else {
- $query = CcBlockcontentsQuery::create(null, $criteria);
- if($distinct) {
- $query->distinct();
- }
- return $query
- ->filterByCcFiles($this)
- ->count($con);
- }
- } else {
- return count($this->collCcBlockcontentss);
- }
- }
- /**
- * Method called to associate a CcBlockcontents object to this object
- * through the CcBlockcontents foreign key attribute.
- *
- * @param CcBlockcontents $l CcBlockcontents
- * @return void
- * @throws PropelException
- */
- public function addCcBlockcontents(CcBlockcontents $l)
- {
- if ($this->collCcBlockcontentss === null) {
- $this->initCcBlockcontentss();
- }
- if (!$this->collCcBlockcontentss->contains($l)) { // only add it if the **same** object is not already associated
- $this->collCcBlockcontentss[]= $l;
- $l->setCcFiles($this);
- }
- }
- /**
- * If this collection has already been initialized with
- * an identical criteria, it returns the collection.
- * Otherwise if this CcFiles is new, it will return
- * an empty collection; or if this CcFiles has previously
- * been saved, it will retrieve related CcBlockcontentss from storage.
- *
- * This method is protected by default in order to keep the public
- * api reasonable. You can provide public methods for those you
- * actually need in CcFiles.
- *
- * @param Criteria $criteria optional Criteria object to narrow the query
- * @param PropelPDO $con optional connection object
- * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
- * @return PropelCollection|array CcBlockcontents[] List of CcBlockcontents objects
- */
- public function getCcBlockcontentssJoinCcBlock($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
- {
- $query = CcBlockcontentsQuery::create(null, $criteria);
- $query->joinWith('CcBlock', $join_behavior);
- return $this->getCcBlockcontentss($query, $con);
- }
- /**
- * Clears out the collCcSchedules collection
- *
- * This does not modify the database; however, it will remove any associated objects, causing
- * them to be refetched by subsequent calls to accessor method.
- *
- * @return void
- * @see addCcSchedules()
- */
- public function clearCcSchedules()
- {
- $this->collCcSchedules = null; // important to set this to NULL since that means it is uninitialized
- }
- /**
- * Initializes the collCcSchedules collection.
- *
- * By default this just sets the collCcSchedules collection to an empty array (like clearcollCcSchedules());
- * however, you may wish to override this method in your stub class to provide setting appropriate
- * to your application -- for example, setting the initial array to the values stored in database.
- *
- * @return void
- */
- public function initCcSchedules()
- {
- $this->collCcSchedules = new PropelObjectCollection();
- $this->collCcSchedules->setModel('CcSchedule');
- }
- /**
- * Gets an array of CcSchedule objects which contain a foreign key that references this object.
- *
- * If the $criteria is not null, it is used to always fetch the results from the database.
- * Otherwise the results are fetched from the database the first time, then cached.
- * Next time the same method is called without $criteria, the cached collection is returned.
- * If this CcFiles is new, it will return
- * an empty collection or the current collection; the criteria is ignored on a new object.
- *
- * @param Criteria $criteria optional Criteria object to narrow the query
- * @param PropelPDO $con optional connection object
- * @return PropelCollection|array CcSchedule[] List of CcSchedule objects
- * @throws PropelException
- */
- public function getCcSchedules($criteria = null, PropelPDO $con = null)
- {
- if(null === $this->collCcSchedules || null !== $criteria) {
- if ($this->isNew() && null === $this->collCcSchedules) {
- // return empty collection
- $this->initCcSchedules();
- } else {
- $collCcSchedules = CcScheduleQuery::create(null, $criteria)
- ->filterByCcFiles($this)
- ->find($con);
- if (null !== $criteria) {
- return $collCcSchedules;
- }
- $this->collCcSchedules = $collCcSchedules;
- }
- }
- return $this->collCcSchedules;
- }
- /**
- * Returns the number of related CcSchedule objects.
- *
- * @param Criteria $criteria
- * @param boolean $distinct
- * @param PropelPDO $con
- * @return int Count of related CcSchedule objects.
- * @throws PropelException
- */
- public function countCcSchedules(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
- {
- if(null === $this->collCcSchedules || null !== $criteria) {
- if ($this->isNew() && null === $this->collCcSchedules) {
- return 0;
- } else {
- $query = CcScheduleQuery::create(null, $criteria);
- if($distinct) {
- $query->distinct();
- }
- return $query
- ->filterByCcFiles($this)
- ->count($con);
- }
- } else {
- return count($this->collCcSchedules);
- }
- }
- /**
- * Method called to associate a CcSchedule object to this object
- * through the CcSchedule foreign key attribute.
- *
- * @param CcSchedule $l CcSchedule
- * @return void
- * @throws PropelException
- */
- public function addCcSchedule(CcSchedule $l)
- {
- if ($this->collCcSchedules === null) {
- $this->initCcSchedules();
- }
- if (!$this->collCcSchedules->contains($l)) { // only add it if the **same** object is not already associated
- $this->collCcSchedules[]= $l;
- $l->setCcFiles($this);
- }
- }
- /**
- * If this collection has already been initialized with
- * an identical criteria, it returns the collection.
- * Otherwise if this CcFiles is new, it will return
- * an empty collection; or if this CcFiles has previously
- * been saved, it will retrieve related CcSchedules from storage.
- *
- * This method is protected by default in order to keep the public
- * api reasonable. You can provide public methods for those you
- * actually need in CcFiles.
- *
- * @param Criteria $criteria optional Criteria object to narrow the query
- * @param PropelPDO $con optional connection object
- * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
- * @return PropelCollection|array CcSchedule[] List of CcSchedule objects
- */
- public function getCcSchedulesJoinCcShowInstances($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
- {
- $query = CcScheduleQuery::create(null, $criteria);
- $query->joinWith('CcShowInstances', $join_behavior);
- return $this->getCcSchedules($query, $con);
- }
- /**
- * If this collection has already been initialized with
- * an identical criteria, it returns the collection.
- * Otherwise if this CcFiles is new, it will return
- * an empty collection; or if this CcFiles has previously
- * been saved, it will retrieve related CcSchedules from storage.
- *
- * This method is protected by default in order to keep the public
- * api reasonable. You can provide public methods for those you
- * actually need in CcFiles.
- *
- * @param Criteria $criteria optional Criteria object to narrow the query
- * @param PropelPDO $con optional connection object
- * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
- * @return PropelCollection|array CcSchedule[] List of CcSchedule objects
- */
- public function getCcSchedulesJoinCcWebstream($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
- {
- $query = CcScheduleQuery::create(null, $criteria);
- $query->joinWith('CcWebstream', $join_behavior);
- return $this->getCcSchedules($query, $con);
- }
- /**
- * Clears out the collCcPlayoutHistorys collection
- *
- * This does not modify the database; however, it will remove any associated objects, causing
- * them to be refetched by subsequent calls to accessor method.
- *
- * @return void
- * @see addCcPlayoutHistorys()
- */
- public function clearCcPlayoutHistorys()
- {
- $this->collCcPlayoutHistorys = null; // important to set this to NULL since that means it is uninitialized
- }
- /**
- * Initializes the collCcPlayoutHistorys collection.
- *
- * By default this just sets the collCcPlayoutHistorys collection to an empty array (like clearcollCcPlayoutHistorys());
- * however, you may wish to override this method in your stub class to provide setting appropriate
- * to your application -- for example, setting the initial array to the values stored in database.
- *
- * @return void
- */
- public function initCcPlayoutHistorys()
- {
- $this->collCcPlayoutHistorys = new PropelObjectCollection();
- $this->collCcPlayoutHistorys->setModel('CcPlayoutHistory');
- }
- /**
- * Gets an array of CcPlayoutHistory objects which contain a foreign key that references this object.
- *
- * If the $criteria is not null, it is used to always fetch the results from the database.
- * Otherwise the results are fetched from the database the first time, then cached.
- * Next time the same method is called without $criteria, the cached collection is returned.
- * If this CcFiles is new, it will return
- * an empty collection or the current collection; the criteria is ignored on a new object.
- *
- * @param Criteria $criteria optional Criteria object to narrow the query
- * @param PropelPDO $con optional connection object
- * @return PropelCollection|array CcPlayoutHistory[] List of CcPlayoutHistory objects
- * @throws PropelException
- */
- public function getCcPlayoutHistorys($criteria = null, PropelPDO $con = null)
- {
- if(null === $this->collCcPlayoutHistorys || null !== $criteria) {
- if ($this->isNew() && null === $this->collCcPlayoutHistorys) {
- // return empty collection
- $this->initCcPlayoutHistorys();
- } else {
- $collCcPlayoutHistorys = CcPlayoutHistoryQuery::create(null, $criteria)
- ->filterByCcFiles($this)
- ->find($con);
- if (null !== $criteria) {
- return $collCcPlayoutHistorys;
- }
- $this->collCcPlayoutHistorys = $collCcPlayoutHistorys;
- }
- }
- return $this->collCcPlayoutHistorys;
- }
- /**
- * Returns the number of related CcPlayoutHistory objects.
- *
- * @param Criteria $criteria
- * @param boolean $distinct
- * @param PropelPDO $con
- * @return int Count of related CcPlayoutHistory objects.
- * @throws PropelException
- */
- public function countCcPlayoutHistorys(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
- {
- if(null === $this->collCcPlayoutHistorys || null !== $criteria) {
- if ($this->isNew() && null === $this->collCcPlayoutHistorys) {
- return 0;
- } else {
- $query = CcPlayoutHistoryQuery::create(null, $criteria);
- if($distinct) {
- $query->distinct();
- }
- return $query
- ->filterByCcFiles($this)
- ->count($con);
- }
- } else {
- return count($this->collCcPlayoutHistorys);
- }
- }
- /**
- * Method called to associate a CcPlayoutHistory object to this object
- * through the CcPlayoutHistory foreign key attribute.
- *
- * @param CcPlayoutHistory $l CcPlayoutHistory
- * @return void
- * @throws PropelException
- */
- public function addCcPlayoutHistory(CcPlayoutHistory $l)
- {
- if ($this->collCcPlayoutHistorys === null) {
- $this->initCcPlayoutHistorys();
- }
- if (!$this->collCcPlayoutHistorys->contains($l)) { // only add it if the **same** object is not already associated
- $this->collCcPlayoutHistorys[]= $l;
- $l->setCcFiles($this);
- }
- }
- /**
- * If this collection has already been initialized with
- * an identical criteria, it returns the collection.
- * Otherwise if this CcFiles is new, it will return
- * an empty collection; or if this CcFiles has previously
- * been saved, it will retrieve related CcPlayoutHistorys from storage.
- *
- * This method is protected by default in order to keep the public
- * api reasonable. You can provide public methods for those you
- * actually need in CcFiles.
- *
- * @param Criteria $criteria optional Criteria object to narrow the query
- * @param PropelPDO $con optional connection object
- * @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
- * @return PropelCollection|array CcPlayoutHistory[] List of CcPlayoutHistory objects
- */
- public function getCcPlayoutHistorysJoinCcShowInstances($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
- {
- $query = CcPlayoutHistoryQuery::create(null, $criteria);
- $query->joinWith('CcShowInstances', $join_behavior);
- return $this->getCcPlayoutHistorys($query, $con);
- }
- /**
- * Clears the current object and sets all attributes to their default values
- */
- public function clear()
- {
- $this->id = null;
- $this->name = null;
- $this->mime = null;
- $this->ftype = null;
- $this->directory = null;
- $this->filepath = null;
- $this->state = null;
- $this->currentlyaccessing = null;
- $this->editedby = null;
- $this->mtime = null;
- $this->utime = null;
- $this->lptime = null;
- $this->md5 = null;
- $this->track_title = null;
- $this->artist_name = null;
- $this->bit_rate = null;
- $this->sample_rate = null;
- $this->format = null;
- $this->length = null;
- $this->album_title = null;
- $this->genre = null;
- $this->comments = null;
- $this->year = null;
- $this->track_number = null;
- $this->channels = null;
- $this->url = null;
- $this->bpm = null;
- $this->rating = null;
- $this->encoded_by = null;
- $this->disc_number = null;
- $this->mood = null;
- $this->label = null;
- $this->composer = null;
- $this->encoder = null;
- $this->checksum = null;
- $this->lyrics = null;
- $this->orchestra = null;
- $this->conductor = null;
- $this->lyricist = null;
- $this->original_lyricist = null;
- $this->radio_station_name = null;
- $this->info_url = null;
- $this->artist_url = null;
- $this->audio_source_url = null;
- $this->radio_station_url = null;
- $this->buy_this_url = null;
- $this->isrc_number = null;
- $this->catalog_number = null;
- $this->original_artist = null;
- $this->copyright = null;
- $this->report_datetime = null;
- $this->report_location = null;
- $this->report_organization = null;
- $this->subject = null;
- $this->contributor = null;
- $this->language = null;
- $this->file_exists = null;
- $this->soundcloud_id = null;
- $this->soundcloud_error_code = null;
- $this->soundcloud_error_msg = null;
- $this->soundcloud_link_to_file = null;
- $this->soundcloud_upload_time = null;
- $this->replay_gain = null;
- $this->owner_id = null;
- $this->cuein = null;
- $this->cueout = null;
- $this->silan_check = null;
- $this->hidden = null;
- $this->is_scheduled = null;
- $this->is_playlist = null;
- $this->alreadyInSave = false;
- $this->alreadyInValidation = false;
- $this->clearAllReferences();
- $this->applyDefaultValues();
- $this->resetModified();
- $this->setNew(true);
- $this->setDeleted(false);
- }
- /**
- * Resets all collections of referencing foreign keys.
- *
- * This method is a user-space workaround for PHP's inability to garbage collect objects
- * with circular references. This is currently necessary when using Propel in certain
- * daemon or large-volumne/high-memory operations.
- *
- * @param boolean $deep Whether to also clear the references on all associated objects.
- */
- public function clearAllReferences($deep = false)
- {
- if ($deep) {
- if ($this->collCcShowInstancess) {
- foreach ((array) $this->collCcShowInstancess as $o) {
- $o->clearAllReferences($deep);
- }
- }
- if ($this->collCcPlaylistcontentss) {
- foreach ((array) $this->collCcPlaylistcontentss as $o) {
- $o->clearAllReferences($deep);
- }
- }
- if ($this->collCcBlockcontentss) {
- foreach ((array) $this->collCcBlockcontentss as $o) {
- $o->clearAllReferences($deep);
- }
- }
- if ($this->collCcSchedules) {
- foreach ((array) $this->collCcSchedules as $o) {
- $o->clearAllReferences($deep);
- }
- }
- if ($this->collCcPlayoutHistorys) {
- foreach ((array) $this->collCcPlayoutHistorys as $o) {
- $o->clearAllReferences($deep);
- }
- }
- } // if ($deep)
- $this->collCcShowInstancess = null;
- $this->collCcPlaylistcontentss = null;
- $this->collCcBlockcontentss = null;
- $this->collCcSchedules = null;
- $this->collCcPlayoutHistorys = null;
- $this->aFkOwner = null;
- $this->aCcSubjsRelatedByDbEditedby = null;
- $this->aCcMusicDirs = null;
- }
- /**
- * Catches calls to virtual methods
- */
- public function __call($name, $params)
- {
- if (preg_match('/get(\w+)/', $name, $matches)) {
- $virtualColumn = $matches[1];
- if ($this->hasVirtualColumn($virtualColumn)) {
- return $this->getVirtualColumn($virtualColumn);
- }
- // no lcfirst in php<5.3...
- $virtualColumn[0] = strtolower($virtualColumn[0]);
- if ($this->hasVirtualColumn($virtualColumn)) {
- return $this->getVirtualColumn($virtualColumn);
- }
- }
- throw new PropelException('Call to undefined method: ' . $name);
- }
- } // BaseCcFiles
|