BaseCcSubjsQuery.php 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117
  1. <?php
  2. /**
  3. * Base class that represents a query for the 'cc_subjs' table.
  4. *
  5. *
  6. *
  7. * @method CcSubjsQuery orderByDbId($order = Criteria::ASC) Order by the id column
  8. * @method CcSubjsQuery orderByDbLogin($order = Criteria::ASC) Order by the login column
  9. * @method CcSubjsQuery orderByDbPass($order = Criteria::ASC) Order by the pass column
  10. * @method CcSubjsQuery orderByDbType($order = Criteria::ASC) Order by the type column
  11. * @method CcSubjsQuery orderByDbFirstName($order = Criteria::ASC) Order by the first_name column
  12. * @method CcSubjsQuery orderByDbLastName($order = Criteria::ASC) Order by the last_name column
  13. * @method CcSubjsQuery orderByDbLastlogin($order = Criteria::ASC) Order by the lastlogin column
  14. * @method CcSubjsQuery orderByDbLastfail($order = Criteria::ASC) Order by the lastfail column
  15. * @method CcSubjsQuery orderByDbSkypeContact($order = Criteria::ASC) Order by the skype_contact column
  16. * @method CcSubjsQuery orderByDbJabberContact($order = Criteria::ASC) Order by the jabber_contact column
  17. * @method CcSubjsQuery orderByDbEmail($order = Criteria::ASC) Order by the email column
  18. * @method CcSubjsQuery orderByDbCellPhone($order = Criteria::ASC) Order by the cell_phone column
  19. * @method CcSubjsQuery orderByDbLoginAttempts($order = Criteria::ASC) Order by the login_attempts column
  20. *
  21. * @method CcSubjsQuery groupByDbId() Group by the id column
  22. * @method CcSubjsQuery groupByDbLogin() Group by the login column
  23. * @method CcSubjsQuery groupByDbPass() Group by the pass column
  24. * @method CcSubjsQuery groupByDbType() Group by the type column
  25. * @method CcSubjsQuery groupByDbFirstName() Group by the first_name column
  26. * @method CcSubjsQuery groupByDbLastName() Group by the last_name column
  27. * @method CcSubjsQuery groupByDbLastlogin() Group by the lastlogin column
  28. * @method CcSubjsQuery groupByDbLastfail() Group by the lastfail column
  29. * @method CcSubjsQuery groupByDbSkypeContact() Group by the skype_contact column
  30. * @method CcSubjsQuery groupByDbJabberContact() Group by the jabber_contact column
  31. * @method CcSubjsQuery groupByDbEmail() Group by the email column
  32. * @method CcSubjsQuery groupByDbCellPhone() Group by the cell_phone column
  33. * @method CcSubjsQuery groupByDbLoginAttempts() Group by the login_attempts column
  34. *
  35. * @method CcSubjsQuery leftJoin($relation) Adds a LEFT JOIN clause to the query
  36. * @method CcSubjsQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
  37. * @method CcSubjsQuery innerJoin($relation) Adds a INNER JOIN clause to the query
  38. *
  39. * @method CcSubjsQuery leftJoinCcFilesRelatedByDbOwnerId($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcFilesRelatedByDbOwnerId relation
  40. * @method CcSubjsQuery rightJoinCcFilesRelatedByDbOwnerId($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcFilesRelatedByDbOwnerId relation
  41. * @method CcSubjsQuery innerJoinCcFilesRelatedByDbOwnerId($relationAlias = '') Adds a INNER JOIN clause to the query using the CcFilesRelatedByDbOwnerId relation
  42. *
  43. * @method CcSubjsQuery leftJoinCcFilesRelatedByDbEditedby($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcFilesRelatedByDbEditedby relation
  44. * @method CcSubjsQuery rightJoinCcFilesRelatedByDbEditedby($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcFilesRelatedByDbEditedby relation
  45. * @method CcSubjsQuery innerJoinCcFilesRelatedByDbEditedby($relationAlias = '') Adds a INNER JOIN clause to the query using the CcFilesRelatedByDbEditedby relation
  46. *
  47. * @method CcSubjsQuery leftJoinCcPerms($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcPerms relation
  48. * @method CcSubjsQuery rightJoinCcPerms($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcPerms relation
  49. * @method CcSubjsQuery innerJoinCcPerms($relationAlias = '') Adds a INNER JOIN clause to the query using the CcPerms relation
  50. *
  51. * @method CcSubjsQuery leftJoinCcShowHosts($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcShowHosts relation
  52. * @method CcSubjsQuery rightJoinCcShowHosts($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcShowHosts relation
  53. * @method CcSubjsQuery innerJoinCcShowHosts($relationAlias = '') Adds a INNER JOIN clause to the query using the CcShowHosts relation
  54. *
  55. * @method CcSubjsQuery leftJoinCcPlaylist($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcPlaylist relation
  56. * @method CcSubjsQuery rightJoinCcPlaylist($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcPlaylist relation
  57. * @method CcSubjsQuery innerJoinCcPlaylist($relationAlias = '') Adds a INNER JOIN clause to the query using the CcPlaylist relation
  58. *
  59. * @method CcSubjsQuery leftJoinCcBlock($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcBlock relation
  60. * @method CcSubjsQuery rightJoinCcBlock($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcBlock relation
  61. * @method CcSubjsQuery innerJoinCcBlock($relationAlias = '') Adds a INNER JOIN clause to the query using the CcBlock relation
  62. *
  63. * @method CcSubjsQuery leftJoinCcPref($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcPref relation
  64. * @method CcSubjsQuery rightJoinCcPref($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcPref relation
  65. * @method CcSubjsQuery innerJoinCcPref($relationAlias = '') Adds a INNER JOIN clause to the query using the CcPref relation
  66. *
  67. * @method CcSubjsQuery leftJoinCcSess($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcSess relation
  68. * @method CcSubjsQuery rightJoinCcSess($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcSess relation
  69. * @method CcSubjsQuery innerJoinCcSess($relationAlias = '') Adds a INNER JOIN clause to the query using the CcSess relation
  70. *
  71. * @method CcSubjsQuery leftJoinCcSubjsToken($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcSubjsToken relation
  72. * @method CcSubjsQuery rightJoinCcSubjsToken($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcSubjsToken relation
  73. * @method CcSubjsQuery innerJoinCcSubjsToken($relationAlias = '') Adds a INNER JOIN clause to the query using the CcSubjsToken relation
  74. *
  75. * @method CcSubjs findOne(PropelPDO $con = null) Return the first CcSubjs matching the query
  76. * @method CcSubjs findOneOrCreate(PropelPDO $con = null) Return the first CcSubjs matching the query, or a new CcSubjs object populated from the query conditions when no match is found
  77. *
  78. * @method CcSubjs findOneByDbId(int $id) Return the first CcSubjs filtered by the id column
  79. * @method CcSubjs findOneByDbLogin(string $login) Return the first CcSubjs filtered by the login column
  80. * @method CcSubjs findOneByDbPass(string $pass) Return the first CcSubjs filtered by the pass column
  81. * @method CcSubjs findOneByDbType(string $type) Return the first CcSubjs filtered by the type column
  82. * @method CcSubjs findOneByDbFirstName(string $first_name) Return the first CcSubjs filtered by the first_name column
  83. * @method CcSubjs findOneByDbLastName(string $last_name) Return the first CcSubjs filtered by the last_name column
  84. * @method CcSubjs findOneByDbLastlogin(string $lastlogin) Return the first CcSubjs filtered by the lastlogin column
  85. * @method CcSubjs findOneByDbLastfail(string $lastfail) Return the first CcSubjs filtered by the lastfail column
  86. * @method CcSubjs findOneByDbSkypeContact(string $skype_contact) Return the first CcSubjs filtered by the skype_contact column
  87. * @method CcSubjs findOneByDbJabberContact(string $jabber_contact) Return the first CcSubjs filtered by the jabber_contact column
  88. * @method CcSubjs findOneByDbEmail(string $email) Return the first CcSubjs filtered by the email column
  89. * @method CcSubjs findOneByDbCellPhone(string $cell_phone) Return the first CcSubjs filtered by the cell_phone column
  90. * @method CcSubjs findOneByDbLoginAttempts(int $login_attempts) Return the first CcSubjs filtered by the login_attempts column
  91. *
  92. * @method array findByDbId(int $id) Return CcSubjs objects filtered by the id column
  93. * @method array findByDbLogin(string $login) Return CcSubjs objects filtered by the login column
  94. * @method array findByDbPass(string $pass) Return CcSubjs objects filtered by the pass column
  95. * @method array findByDbType(string $type) Return CcSubjs objects filtered by the type column
  96. * @method array findByDbFirstName(string $first_name) Return CcSubjs objects filtered by the first_name column
  97. * @method array findByDbLastName(string $last_name) Return CcSubjs objects filtered by the last_name column
  98. * @method array findByDbLastlogin(string $lastlogin) Return CcSubjs objects filtered by the lastlogin column
  99. * @method array findByDbLastfail(string $lastfail) Return CcSubjs objects filtered by the lastfail column
  100. * @method array findByDbSkypeContact(string $skype_contact) Return CcSubjs objects filtered by the skype_contact column
  101. * @method array findByDbJabberContact(string $jabber_contact) Return CcSubjs objects filtered by the jabber_contact column
  102. * @method array findByDbEmail(string $email) Return CcSubjs objects filtered by the email column
  103. * @method array findByDbCellPhone(string $cell_phone) Return CcSubjs objects filtered by the cell_phone column
  104. * @method array findByDbLoginAttempts(int $login_attempts) Return CcSubjs objects filtered by the login_attempts column
  105. *
  106. * @package propel.generator.airtime.om
  107. */
  108. abstract class BaseCcSubjsQuery extends ModelCriteria
  109. {
  110. /**
  111. * Initializes internal state of BaseCcSubjsQuery object.
  112. *
  113. * @param string $dbName The dabase name
  114. * @param string $modelName The phpName of a model, e.g. 'Book'
  115. * @param string $modelAlias The alias for the model in this query, e.g. 'b'
  116. */
  117. public function __construct($dbName = 'airtime', $modelName = 'CcSubjs', $modelAlias = null)
  118. {
  119. parent::__construct($dbName, $modelName, $modelAlias);
  120. }
  121. /**
  122. * Returns a new CcSubjsQuery object.
  123. *
  124. * @param string $modelAlias The alias of a model in the query
  125. * @param Criteria $criteria Optional Criteria to build the query from
  126. *
  127. * @return CcSubjsQuery
  128. */
  129. public static function create($modelAlias = null, $criteria = null)
  130. {
  131. if ($criteria instanceof CcSubjsQuery) {
  132. return $criteria;
  133. }
  134. $query = new CcSubjsQuery();
  135. if (null !== $modelAlias) {
  136. $query->setModelAlias($modelAlias);
  137. }
  138. if ($criteria instanceof Criteria) {
  139. $query->mergeWith($criteria);
  140. }
  141. return $query;
  142. }
  143. /**
  144. * Find object by primary key
  145. * Use instance pooling to avoid a database query if the object exists
  146. * <code>
  147. * $obj = $c->findPk(12, $con);
  148. * </code>
  149. * @param mixed $key Primary key to use for the query
  150. * @param PropelPDO $con an optional connection object
  151. *
  152. * @return CcSubjs|array|mixed the result, formatted by the current formatter
  153. */
  154. public function findPk($key, $con = null)
  155. {
  156. if ((null !== ($obj = CcSubjsPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {
  157. // the object is alredy in the instance pool
  158. return $obj;
  159. } else {
  160. // the object has not been requested yet, or the formatter is not an object formatter
  161. $criteria = $this->isKeepQuery() ? clone $this : $this;
  162. $stmt = $criteria
  163. ->filterByPrimaryKey($key)
  164. ->getSelectStatement($con);
  165. return $criteria->getFormatter()->init($criteria)->formatOne($stmt);
  166. }
  167. }
  168. /**
  169. * Find objects by primary key
  170. * <code>
  171. * $objs = $c->findPks(array(12, 56, 832), $con);
  172. * </code>
  173. * @param array $keys Primary keys to use for the query
  174. * @param PropelPDO $con an optional connection object
  175. *
  176. * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter
  177. */
  178. public function findPks($keys, $con = null)
  179. {
  180. $criteria = $this->isKeepQuery() ? clone $this : $this;
  181. return $this
  182. ->filterByPrimaryKeys($keys)
  183. ->find($con);
  184. }
  185. /**
  186. * Filter the query by primary key
  187. *
  188. * @param mixed $key Primary key to use for the query
  189. *
  190. * @return CcSubjsQuery The current query, for fluid interface
  191. */
  192. public function filterByPrimaryKey($key)
  193. {
  194. return $this->addUsingAlias(CcSubjsPeer::ID, $key, Criteria::EQUAL);
  195. }
  196. /**
  197. * Filter the query by a list of primary keys
  198. *
  199. * @param array $keys The list of primary key to use for the query
  200. *
  201. * @return CcSubjsQuery The current query, for fluid interface
  202. */
  203. public function filterByPrimaryKeys($keys)
  204. {
  205. return $this->addUsingAlias(CcSubjsPeer::ID, $keys, Criteria::IN);
  206. }
  207. /**
  208. * Filter the query on the id column
  209. *
  210. * @param int|array $dbId The value to use as filter.
  211. * Accepts an associative array('min' => $minValue, 'max' => $maxValue)
  212. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  213. *
  214. * @return CcSubjsQuery The current query, for fluid interface
  215. */
  216. public function filterByDbId($dbId = null, $comparison = null)
  217. {
  218. if (is_array($dbId) && null === $comparison) {
  219. $comparison = Criteria::IN;
  220. }
  221. return $this->addUsingAlias(CcSubjsPeer::ID, $dbId, $comparison);
  222. }
  223. /**
  224. * Filter the query on the login column
  225. *
  226. * @param string $dbLogin The value to use as filter.
  227. * Accepts wildcards (* and % trigger a LIKE)
  228. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  229. *
  230. * @return CcSubjsQuery The current query, for fluid interface
  231. */
  232. public function filterByDbLogin($dbLogin = null, $comparison = null)
  233. {
  234. if (null === $comparison) {
  235. if (is_array($dbLogin)) {
  236. $comparison = Criteria::IN;
  237. } elseif (preg_match('/[\%\*]/', $dbLogin)) {
  238. $dbLogin = str_replace('*', '%', $dbLogin);
  239. $comparison = Criteria::LIKE;
  240. }
  241. }
  242. return $this->addUsingAlias(CcSubjsPeer::LOGIN, $dbLogin, $comparison);
  243. }
  244. /**
  245. * Filter the query on the pass column
  246. *
  247. * @param string $dbPass The value to use as filter.
  248. * Accepts wildcards (* and % trigger a LIKE)
  249. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  250. *
  251. * @return CcSubjsQuery The current query, for fluid interface
  252. */
  253. public function filterByDbPass($dbPass = null, $comparison = null)
  254. {
  255. if (null === $comparison) {
  256. if (is_array($dbPass)) {
  257. $comparison = Criteria::IN;
  258. } elseif (preg_match('/[\%\*]/', $dbPass)) {
  259. $dbPass = str_replace('*', '%', $dbPass);
  260. $comparison = Criteria::LIKE;
  261. }
  262. }
  263. return $this->addUsingAlias(CcSubjsPeer::PASS, $dbPass, $comparison);
  264. }
  265. /**
  266. * Filter the query on the type column
  267. *
  268. * @param string $dbType The value to use as filter.
  269. * Accepts wildcards (* and % trigger a LIKE)
  270. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  271. *
  272. * @return CcSubjsQuery The current query, for fluid interface
  273. */
  274. public function filterByDbType($dbType = null, $comparison = null)
  275. {
  276. if (null === $comparison) {
  277. if (is_array($dbType)) {
  278. $comparison = Criteria::IN;
  279. } elseif (preg_match('/[\%\*]/', $dbType)) {
  280. $dbType = str_replace('*', '%', $dbType);
  281. $comparison = Criteria::LIKE;
  282. }
  283. }
  284. return $this->addUsingAlias(CcSubjsPeer::TYPE, $dbType, $comparison);
  285. }
  286. /**
  287. * Filter the query on the first_name column
  288. *
  289. * @param string $dbFirstName The value to use as filter.
  290. * Accepts wildcards (* and % trigger a LIKE)
  291. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  292. *
  293. * @return CcSubjsQuery The current query, for fluid interface
  294. */
  295. public function filterByDbFirstName($dbFirstName = null, $comparison = null)
  296. {
  297. if (null === $comparison) {
  298. if (is_array($dbFirstName)) {
  299. $comparison = Criteria::IN;
  300. } elseif (preg_match('/[\%\*]/', $dbFirstName)) {
  301. $dbFirstName = str_replace('*', '%', $dbFirstName);
  302. $comparison = Criteria::LIKE;
  303. }
  304. }
  305. return $this->addUsingAlias(CcSubjsPeer::FIRST_NAME, $dbFirstName, $comparison);
  306. }
  307. /**
  308. * Filter the query on the last_name column
  309. *
  310. * @param string $dbLastName The value to use as filter.
  311. * Accepts wildcards (* and % trigger a LIKE)
  312. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  313. *
  314. * @return CcSubjsQuery The current query, for fluid interface
  315. */
  316. public function filterByDbLastName($dbLastName = null, $comparison = null)
  317. {
  318. if (null === $comparison) {
  319. if (is_array($dbLastName)) {
  320. $comparison = Criteria::IN;
  321. } elseif (preg_match('/[\%\*]/', $dbLastName)) {
  322. $dbLastName = str_replace('*', '%', $dbLastName);
  323. $comparison = Criteria::LIKE;
  324. }
  325. }
  326. return $this->addUsingAlias(CcSubjsPeer::LAST_NAME, $dbLastName, $comparison);
  327. }
  328. /**
  329. * Filter the query on the lastlogin column
  330. *
  331. * @param string|array $dbLastlogin The value to use as filter.
  332. * Accepts an associative array('min' => $minValue, 'max' => $maxValue)
  333. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  334. *
  335. * @return CcSubjsQuery The current query, for fluid interface
  336. */
  337. public function filterByDbLastlogin($dbLastlogin = null, $comparison = null)
  338. {
  339. if (is_array($dbLastlogin)) {
  340. $useMinMax = false;
  341. if (isset($dbLastlogin['min'])) {
  342. $this->addUsingAlias(CcSubjsPeer::LASTLOGIN, $dbLastlogin['min'], Criteria::GREATER_EQUAL);
  343. $useMinMax = true;
  344. }
  345. if (isset($dbLastlogin['max'])) {
  346. $this->addUsingAlias(CcSubjsPeer::LASTLOGIN, $dbLastlogin['max'], Criteria::LESS_EQUAL);
  347. $useMinMax = true;
  348. }
  349. if ($useMinMax) {
  350. return $this;
  351. }
  352. if (null === $comparison) {
  353. $comparison = Criteria::IN;
  354. }
  355. }
  356. return $this->addUsingAlias(CcSubjsPeer::LASTLOGIN, $dbLastlogin, $comparison);
  357. }
  358. /**
  359. * Filter the query on the lastfail column
  360. *
  361. * @param string|array $dbLastfail The value to use as filter.
  362. * Accepts an associative array('min' => $minValue, 'max' => $maxValue)
  363. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  364. *
  365. * @return CcSubjsQuery The current query, for fluid interface
  366. */
  367. public function filterByDbLastfail($dbLastfail = null, $comparison = null)
  368. {
  369. if (is_array($dbLastfail)) {
  370. $useMinMax = false;
  371. if (isset($dbLastfail['min'])) {
  372. $this->addUsingAlias(CcSubjsPeer::LASTFAIL, $dbLastfail['min'], Criteria::GREATER_EQUAL);
  373. $useMinMax = true;
  374. }
  375. if (isset($dbLastfail['max'])) {
  376. $this->addUsingAlias(CcSubjsPeer::LASTFAIL, $dbLastfail['max'], Criteria::LESS_EQUAL);
  377. $useMinMax = true;
  378. }
  379. if ($useMinMax) {
  380. return $this;
  381. }
  382. if (null === $comparison) {
  383. $comparison = Criteria::IN;
  384. }
  385. }
  386. return $this->addUsingAlias(CcSubjsPeer::LASTFAIL, $dbLastfail, $comparison);
  387. }
  388. /**
  389. * Filter the query on the skype_contact column
  390. *
  391. * @param string $dbSkypeContact The value to use as filter.
  392. * Accepts wildcards (* and % trigger a LIKE)
  393. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  394. *
  395. * @return CcSubjsQuery The current query, for fluid interface
  396. */
  397. public function filterByDbSkypeContact($dbSkypeContact = null, $comparison = null)
  398. {
  399. if (null === $comparison) {
  400. if (is_array($dbSkypeContact)) {
  401. $comparison = Criteria::IN;
  402. } elseif (preg_match('/[\%\*]/', $dbSkypeContact)) {
  403. $dbSkypeContact = str_replace('*', '%', $dbSkypeContact);
  404. $comparison = Criteria::LIKE;
  405. }
  406. }
  407. return $this->addUsingAlias(CcSubjsPeer::SKYPE_CONTACT, $dbSkypeContact, $comparison);
  408. }
  409. /**
  410. * Filter the query on the jabber_contact column
  411. *
  412. * @param string $dbJabberContact The value to use as filter.
  413. * Accepts wildcards (* and % trigger a LIKE)
  414. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  415. *
  416. * @return CcSubjsQuery The current query, for fluid interface
  417. */
  418. public function filterByDbJabberContact($dbJabberContact = null, $comparison = null)
  419. {
  420. if (null === $comparison) {
  421. if (is_array($dbJabberContact)) {
  422. $comparison = Criteria::IN;
  423. } elseif (preg_match('/[\%\*]/', $dbJabberContact)) {
  424. $dbJabberContact = str_replace('*', '%', $dbJabberContact);
  425. $comparison = Criteria::LIKE;
  426. }
  427. }
  428. return $this->addUsingAlias(CcSubjsPeer::JABBER_CONTACT, $dbJabberContact, $comparison);
  429. }
  430. /**
  431. * Filter the query on the email column
  432. *
  433. * @param string $dbEmail The value to use as filter.
  434. * Accepts wildcards (* and % trigger a LIKE)
  435. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  436. *
  437. * @return CcSubjsQuery The current query, for fluid interface
  438. */
  439. public function filterByDbEmail($dbEmail = null, $comparison = null)
  440. {
  441. if (null === $comparison) {
  442. if (is_array($dbEmail)) {
  443. $comparison = Criteria::IN;
  444. } elseif (preg_match('/[\%\*]/', $dbEmail)) {
  445. $dbEmail = str_replace('*', '%', $dbEmail);
  446. $comparison = Criteria::LIKE;
  447. }
  448. }
  449. return $this->addUsingAlias(CcSubjsPeer::EMAIL, $dbEmail, $comparison);
  450. }
  451. /**
  452. * Filter the query on the cell_phone column
  453. *
  454. * @param string $dbCellPhone The value to use as filter.
  455. * Accepts wildcards (* and % trigger a LIKE)
  456. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  457. *
  458. * @return CcSubjsQuery The current query, for fluid interface
  459. */
  460. public function filterByDbCellPhone($dbCellPhone = null, $comparison = null)
  461. {
  462. if (null === $comparison) {
  463. if (is_array($dbCellPhone)) {
  464. $comparison = Criteria::IN;
  465. } elseif (preg_match('/[\%\*]/', $dbCellPhone)) {
  466. $dbCellPhone = str_replace('*', '%', $dbCellPhone);
  467. $comparison = Criteria::LIKE;
  468. }
  469. }
  470. return $this->addUsingAlias(CcSubjsPeer::CELL_PHONE, $dbCellPhone, $comparison);
  471. }
  472. /**
  473. * Filter the query on the login_attempts column
  474. *
  475. * @param int|array $dbLoginAttempts The value to use as filter.
  476. * Accepts an associative array('min' => $minValue, 'max' => $maxValue)
  477. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  478. *
  479. * @return CcSubjsQuery The current query, for fluid interface
  480. */
  481. public function filterByDbLoginAttempts($dbLoginAttempts = null, $comparison = null)
  482. {
  483. if (is_array($dbLoginAttempts)) {
  484. $useMinMax = false;
  485. if (isset($dbLoginAttempts['min'])) {
  486. $this->addUsingAlias(CcSubjsPeer::LOGIN_ATTEMPTS, $dbLoginAttempts['min'], Criteria::GREATER_EQUAL);
  487. $useMinMax = true;
  488. }
  489. if (isset($dbLoginAttempts['max'])) {
  490. $this->addUsingAlias(CcSubjsPeer::LOGIN_ATTEMPTS, $dbLoginAttempts['max'], Criteria::LESS_EQUAL);
  491. $useMinMax = true;
  492. }
  493. if ($useMinMax) {
  494. return $this;
  495. }
  496. if (null === $comparison) {
  497. $comparison = Criteria::IN;
  498. }
  499. }
  500. return $this->addUsingAlias(CcSubjsPeer::LOGIN_ATTEMPTS, $dbLoginAttempts, $comparison);
  501. }
  502. /**
  503. * Filter the query by a related CcFiles object
  504. *
  505. * @param CcFiles $ccFiles the related object to use as filter
  506. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  507. *
  508. * @return CcSubjsQuery The current query, for fluid interface
  509. */
  510. public function filterByCcFilesRelatedByDbOwnerId($ccFiles, $comparison = null)
  511. {
  512. return $this
  513. ->addUsingAlias(CcSubjsPeer::ID, $ccFiles->getDbOwnerId(), $comparison);
  514. }
  515. /**
  516. * Adds a JOIN clause to the query using the CcFilesRelatedByDbOwnerId relation
  517. *
  518. * @param string $relationAlias optional alias for the relation
  519. * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
  520. *
  521. * @return CcSubjsQuery The current query, for fluid interface
  522. */
  523. public function joinCcFilesRelatedByDbOwnerId($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
  524. {
  525. $tableMap = $this->getTableMap();
  526. $relationMap = $tableMap->getRelation('CcFilesRelatedByDbOwnerId');
  527. // create a ModelJoin object for this join
  528. $join = new ModelJoin();
  529. $join->setJoinType($joinType);
  530. $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
  531. if ($previousJoin = $this->getPreviousJoin()) {
  532. $join->setPreviousJoin($previousJoin);
  533. }
  534. // add the ModelJoin to the current object
  535. if($relationAlias) {
  536. $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
  537. $this->addJoinObject($join, $relationAlias);
  538. } else {
  539. $this->addJoinObject($join, 'CcFilesRelatedByDbOwnerId');
  540. }
  541. return $this;
  542. }
  543. /**
  544. * Use the CcFilesRelatedByDbOwnerId relation CcFiles object
  545. *
  546. * @see useQuery()
  547. *
  548. * @param string $relationAlias optional alias for the relation,
  549. * to be used as main alias in the secondary query
  550. * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
  551. *
  552. * @return CcFilesQuery A secondary query class using the current class as primary query
  553. */
  554. public function useCcFilesRelatedByDbOwnerIdQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
  555. {
  556. return $this
  557. ->joinCcFilesRelatedByDbOwnerId($relationAlias, $joinType)
  558. ->useQuery($relationAlias ? $relationAlias : 'CcFilesRelatedByDbOwnerId', 'CcFilesQuery');
  559. }
  560. /**
  561. * Filter the query by a related CcFiles object
  562. *
  563. * @param CcFiles $ccFiles the related object to use as filter
  564. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  565. *
  566. * @return CcSubjsQuery The current query, for fluid interface
  567. */
  568. public function filterByCcFilesRelatedByDbEditedby($ccFiles, $comparison = null)
  569. {
  570. return $this
  571. ->addUsingAlias(CcSubjsPeer::ID, $ccFiles->getDbEditedby(), $comparison);
  572. }
  573. /**
  574. * Adds a JOIN clause to the query using the CcFilesRelatedByDbEditedby relation
  575. *
  576. * @param string $relationAlias optional alias for the relation
  577. * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
  578. *
  579. * @return CcSubjsQuery The current query, for fluid interface
  580. */
  581. public function joinCcFilesRelatedByDbEditedby($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
  582. {
  583. $tableMap = $this->getTableMap();
  584. $relationMap = $tableMap->getRelation('CcFilesRelatedByDbEditedby');
  585. // create a ModelJoin object for this join
  586. $join = new ModelJoin();
  587. $join->setJoinType($joinType);
  588. $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
  589. if ($previousJoin = $this->getPreviousJoin()) {
  590. $join->setPreviousJoin($previousJoin);
  591. }
  592. // add the ModelJoin to the current object
  593. if($relationAlias) {
  594. $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
  595. $this->addJoinObject($join, $relationAlias);
  596. } else {
  597. $this->addJoinObject($join, 'CcFilesRelatedByDbEditedby');
  598. }
  599. return $this;
  600. }
  601. /**
  602. * Use the CcFilesRelatedByDbEditedby relation CcFiles object
  603. *
  604. * @see useQuery()
  605. *
  606. * @param string $relationAlias optional alias for the relation,
  607. * to be used as main alias in the secondary query
  608. * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
  609. *
  610. * @return CcFilesQuery A secondary query class using the current class as primary query
  611. */
  612. public function useCcFilesRelatedByDbEditedbyQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
  613. {
  614. return $this
  615. ->joinCcFilesRelatedByDbEditedby($relationAlias, $joinType)
  616. ->useQuery($relationAlias ? $relationAlias : 'CcFilesRelatedByDbEditedby', 'CcFilesQuery');
  617. }
  618. /**
  619. * Filter the query by a related CcPerms object
  620. *
  621. * @param CcPerms $ccPerms the related object to use as filter
  622. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  623. *
  624. * @return CcSubjsQuery The current query, for fluid interface
  625. */
  626. public function filterByCcPerms($ccPerms, $comparison = null)
  627. {
  628. return $this
  629. ->addUsingAlias(CcSubjsPeer::ID, $ccPerms->getSubj(), $comparison);
  630. }
  631. /**
  632. * Adds a JOIN clause to the query using the CcPerms relation
  633. *
  634. * @param string $relationAlias optional alias for the relation
  635. * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
  636. *
  637. * @return CcSubjsQuery The current query, for fluid interface
  638. */
  639. public function joinCcPerms($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
  640. {
  641. $tableMap = $this->getTableMap();
  642. $relationMap = $tableMap->getRelation('CcPerms');
  643. // create a ModelJoin object for this join
  644. $join = new ModelJoin();
  645. $join->setJoinType($joinType);
  646. $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
  647. if ($previousJoin = $this->getPreviousJoin()) {
  648. $join->setPreviousJoin($previousJoin);
  649. }
  650. // add the ModelJoin to the current object
  651. if($relationAlias) {
  652. $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
  653. $this->addJoinObject($join, $relationAlias);
  654. } else {
  655. $this->addJoinObject($join, 'CcPerms');
  656. }
  657. return $this;
  658. }
  659. /**
  660. * Use the CcPerms relation CcPerms object
  661. *
  662. * @see useQuery()
  663. *
  664. * @param string $relationAlias optional alias for the relation,
  665. * to be used as main alias in the secondary query
  666. * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
  667. *
  668. * @return CcPermsQuery A secondary query class using the current class as primary query
  669. */
  670. public function useCcPermsQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
  671. {
  672. return $this
  673. ->joinCcPerms($relationAlias, $joinType)
  674. ->useQuery($relationAlias ? $relationAlias : 'CcPerms', 'CcPermsQuery');
  675. }
  676. /**
  677. * Filter the query by a related CcShowHosts object
  678. *
  679. * @param CcShowHosts $ccShowHosts the related object to use as filter
  680. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  681. *
  682. * @return CcSubjsQuery The current query, for fluid interface
  683. */
  684. public function filterByCcShowHosts($ccShowHosts, $comparison = null)
  685. {
  686. return $this
  687. ->addUsingAlias(CcSubjsPeer::ID, $ccShowHosts->getDbHost(), $comparison);
  688. }
  689. /**
  690. * Adds a JOIN clause to the query using the CcShowHosts relation
  691. *
  692. * @param string $relationAlias optional alias for the relation
  693. * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
  694. *
  695. * @return CcSubjsQuery The current query, for fluid interface
  696. */
  697. public function joinCcShowHosts($relationAlias = '', $joinType = Criteria::INNER_JOIN)
  698. {
  699. $tableMap = $this->getTableMap();
  700. $relationMap = $tableMap->getRelation('CcShowHosts');
  701. // create a ModelJoin object for this join
  702. $join = new ModelJoin();
  703. $join->setJoinType($joinType);
  704. $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
  705. if ($previousJoin = $this->getPreviousJoin()) {
  706. $join->setPreviousJoin($previousJoin);
  707. }
  708. // add the ModelJoin to the current object
  709. if($relationAlias) {
  710. $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
  711. $this->addJoinObject($join, $relationAlias);
  712. } else {
  713. $this->addJoinObject($join, 'CcShowHosts');
  714. }
  715. return $this;
  716. }
  717. /**
  718. * Use the CcShowHosts relation CcShowHosts object
  719. *
  720. * @see useQuery()
  721. *
  722. * @param string $relationAlias optional alias for the relation,
  723. * to be used as main alias in the secondary query
  724. * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
  725. *
  726. * @return CcShowHostsQuery A secondary query class using the current class as primary query
  727. */
  728. public function useCcShowHostsQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN)
  729. {
  730. return $this
  731. ->joinCcShowHosts($relationAlias, $joinType)
  732. ->useQuery($relationAlias ? $relationAlias : 'CcShowHosts', 'CcShowHostsQuery');
  733. }
  734. /**
  735. * Filter the query by a related CcPlaylist object
  736. *
  737. * @param CcPlaylist $ccPlaylist the related object to use as filter
  738. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  739. *
  740. * @return CcSubjsQuery The current query, for fluid interface
  741. */
  742. public function filterByCcPlaylist($ccPlaylist, $comparison = null)
  743. {
  744. return $this
  745. ->addUsingAlias(CcSubjsPeer::ID, $ccPlaylist->getDbCreatorId(), $comparison);
  746. }
  747. /**
  748. * Adds a JOIN clause to the query using the CcPlaylist relation
  749. *
  750. * @param string $relationAlias optional alias for the relation
  751. * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
  752. *
  753. * @return CcSubjsQuery The current query, for fluid interface
  754. */
  755. public function joinCcPlaylist($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
  756. {
  757. $tableMap = $this->getTableMap();
  758. $relationMap = $tableMap->getRelation('CcPlaylist');
  759. // create a ModelJoin object for this join
  760. $join = new ModelJoin();
  761. $join->setJoinType($joinType);
  762. $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
  763. if ($previousJoin = $this->getPreviousJoin()) {
  764. $join->setPreviousJoin($previousJoin);
  765. }
  766. // add the ModelJoin to the current object
  767. if($relationAlias) {
  768. $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
  769. $this->addJoinObject($join, $relationAlias);
  770. } else {
  771. $this->addJoinObject($join, 'CcPlaylist');
  772. }
  773. return $this;
  774. }
  775. /**
  776. * Use the CcPlaylist relation CcPlaylist object
  777. *
  778. * @see useQuery()
  779. *
  780. * @param string $relationAlias optional alias for the relation,
  781. * to be used as main alias in the secondary query
  782. * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
  783. *
  784. * @return CcPlaylistQuery A secondary query class using the current class as primary query
  785. */
  786. public function useCcPlaylistQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
  787. {
  788. return $this
  789. ->joinCcPlaylist($relationAlias, $joinType)
  790. ->useQuery($relationAlias ? $relationAlias : 'CcPlaylist', 'CcPlaylistQuery');
  791. }
  792. /**
  793. * Filter the query by a related CcBlock object
  794. *
  795. * @param CcBlock $ccBlock the related object to use as filter
  796. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  797. *
  798. * @return CcSubjsQuery The current query, for fluid interface
  799. */
  800. public function filterByCcBlock($ccBlock, $comparison = null)
  801. {
  802. return $this
  803. ->addUsingAlias(CcSubjsPeer::ID, $ccBlock->getDbCreatorId(), $comparison);
  804. }
  805. /**
  806. * Adds a JOIN clause to the query using the CcBlock relation
  807. *
  808. * @param string $relationAlias optional alias for the relation
  809. * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
  810. *
  811. * @return CcSubjsQuery The current query, for fluid interface
  812. */
  813. public function joinCcBlock($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
  814. {
  815. $tableMap = $this->getTableMap();
  816. $relationMap = $tableMap->getRelation('CcBlock');
  817. // create a ModelJoin object for this join
  818. $join = new ModelJoin();
  819. $join->setJoinType($joinType);
  820. $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
  821. if ($previousJoin = $this->getPreviousJoin()) {
  822. $join->setPreviousJoin($previousJoin);
  823. }
  824. // add the ModelJoin to the current object
  825. if($relationAlias) {
  826. $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
  827. $this->addJoinObject($join, $relationAlias);
  828. } else {
  829. $this->addJoinObject($join, 'CcBlock');
  830. }
  831. return $this;
  832. }
  833. /**
  834. * Use the CcBlock relation CcBlock object
  835. *
  836. * @see useQuery()
  837. *
  838. * @param string $relationAlias optional alias for the relation,
  839. * to be used as main alias in the secondary query
  840. * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
  841. *
  842. * @return CcBlockQuery A secondary query class using the current class as primary query
  843. */
  844. public function useCcBlockQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
  845. {
  846. return $this
  847. ->joinCcBlock($relationAlias, $joinType)
  848. ->useQuery($relationAlias ? $relationAlias : 'CcBlock', 'CcBlockQuery');
  849. }
  850. /**
  851. * Filter the query by a related CcPref object
  852. *
  853. * @param CcPref $ccPref the related object to use as filter
  854. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  855. *
  856. * @return CcSubjsQuery The current query, for fluid interface
  857. */
  858. public function filterByCcPref($ccPref, $comparison = null)
  859. {
  860. return $this
  861. ->addUsingAlias(CcSubjsPeer::ID, $ccPref->getSubjid(), $comparison);
  862. }
  863. /**
  864. * Adds a JOIN clause to the query using the CcPref relation
  865. *
  866. * @param string $relationAlias optional alias for the relation
  867. * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
  868. *
  869. * @return CcSubjsQuery The current query, for fluid interface
  870. */
  871. public function joinCcPref($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
  872. {
  873. $tableMap = $this->getTableMap();
  874. $relationMap = $tableMap->getRelation('CcPref');
  875. // create a ModelJoin object for this join
  876. $join = new ModelJoin();
  877. $join->setJoinType($joinType);
  878. $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
  879. if ($previousJoin = $this->getPreviousJoin()) {
  880. $join->setPreviousJoin($previousJoin);
  881. }
  882. // add the ModelJoin to the current object
  883. if($relationAlias) {
  884. $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
  885. $this->addJoinObject($join, $relationAlias);
  886. } else {
  887. $this->addJoinObject($join, 'CcPref');
  888. }
  889. return $this;
  890. }
  891. /**
  892. * Use the CcPref relation CcPref object
  893. *
  894. * @see useQuery()
  895. *
  896. * @param string $relationAlias optional alias for the relation,
  897. * to be used as main alias in the secondary query
  898. * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
  899. *
  900. * @return CcPrefQuery A secondary query class using the current class as primary query
  901. */
  902. public function useCcPrefQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
  903. {
  904. return $this
  905. ->joinCcPref($relationAlias, $joinType)
  906. ->useQuery($relationAlias ? $relationAlias : 'CcPref', 'CcPrefQuery');
  907. }
  908. /**
  909. * Filter the query by a related CcSess object
  910. *
  911. * @param CcSess $ccSess the related object to use as filter
  912. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  913. *
  914. * @return CcSubjsQuery The current query, for fluid interface
  915. */
  916. public function filterByCcSess($ccSess, $comparison = null)
  917. {
  918. return $this
  919. ->addUsingAlias(CcSubjsPeer::ID, $ccSess->getUserid(), $comparison);
  920. }
  921. /**
  922. * Adds a JOIN clause to the query using the CcSess relation
  923. *
  924. * @param string $relationAlias optional alias for the relation
  925. * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
  926. *
  927. * @return CcSubjsQuery The current query, for fluid interface
  928. */
  929. public function joinCcSess($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
  930. {
  931. $tableMap = $this->getTableMap();
  932. $relationMap = $tableMap->getRelation('CcSess');
  933. // create a ModelJoin object for this join
  934. $join = new ModelJoin();
  935. $join->setJoinType($joinType);
  936. $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
  937. if ($previousJoin = $this->getPreviousJoin()) {
  938. $join->setPreviousJoin($previousJoin);
  939. }
  940. // add the ModelJoin to the current object
  941. if($relationAlias) {
  942. $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
  943. $this->addJoinObject($join, $relationAlias);
  944. } else {
  945. $this->addJoinObject($join, 'CcSess');
  946. }
  947. return $this;
  948. }
  949. /**
  950. * Use the CcSess relation CcSess object
  951. *
  952. * @see useQuery()
  953. *
  954. * @param string $relationAlias optional alias for the relation,
  955. * to be used as main alias in the secondary query
  956. * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
  957. *
  958. * @return CcSessQuery A secondary query class using the current class as primary query
  959. */
  960. public function useCcSessQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
  961. {
  962. return $this
  963. ->joinCcSess($relationAlias, $joinType)
  964. ->useQuery($relationAlias ? $relationAlias : 'CcSess', 'CcSessQuery');
  965. }
  966. /**
  967. * Filter the query by a related CcSubjsToken object
  968. *
  969. * @param CcSubjsToken $ccSubjsToken the related object to use as filter
  970. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  971. *
  972. * @return CcSubjsQuery The current query, for fluid interface
  973. */
  974. public function filterByCcSubjsToken($ccSubjsToken, $comparison = null)
  975. {
  976. return $this
  977. ->addUsingAlias(CcSubjsPeer::ID, $ccSubjsToken->getDbUserId(), $comparison);
  978. }
  979. /**
  980. * Adds a JOIN clause to the query using the CcSubjsToken relation
  981. *
  982. * @param string $relationAlias optional alias for the relation
  983. * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
  984. *
  985. * @return CcSubjsQuery The current query, for fluid interface
  986. */
  987. public function joinCcSubjsToken($relationAlias = '', $joinType = Criteria::INNER_JOIN)
  988. {
  989. $tableMap = $this->getTableMap();
  990. $relationMap = $tableMap->getRelation('CcSubjsToken');
  991. // create a ModelJoin object for this join
  992. $join = new ModelJoin();
  993. $join->setJoinType($joinType);
  994. $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
  995. if ($previousJoin = $this->getPreviousJoin()) {
  996. $join->setPreviousJoin($previousJoin);
  997. }
  998. // add the ModelJoin to the current object
  999. if($relationAlias) {
  1000. $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
  1001. $this->addJoinObject($join, $relationAlias);
  1002. } else {
  1003. $this->addJoinObject($join, 'CcSubjsToken');
  1004. }
  1005. return $this;
  1006. }
  1007. /**
  1008. * Use the CcSubjsToken relation CcSubjsToken object
  1009. *
  1010. * @see useQuery()
  1011. *
  1012. * @param string $relationAlias optional alias for the relation,
  1013. * to be used as main alias in the secondary query
  1014. * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
  1015. *
  1016. * @return CcSubjsTokenQuery A secondary query class using the current class as primary query
  1017. */
  1018. public function useCcSubjsTokenQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN)
  1019. {
  1020. return $this
  1021. ->joinCcSubjsToken($relationAlias, $joinType)
  1022. ->useQuery($relationAlias ? $relationAlias : 'CcSubjsToken', 'CcSubjsTokenQuery');
  1023. }
  1024. /**
  1025. * Exclude object from result
  1026. *
  1027. * @param CcSubjs $ccSubjs Object to remove from the list of results
  1028. *
  1029. * @return CcSubjsQuery The current query, for fluid interface
  1030. */
  1031. public function prune($ccSubjs = null)
  1032. {
  1033. if ($ccSubjs) {
  1034. $this->addUsingAlias(CcSubjsPeer::ID, $ccSubjs->getDbId(), Criteria::NOT_EQUAL);
  1035. }
  1036. return $this;
  1037. }
  1038. } // BaseCcSubjsQuery