repository_name stringlengths 5 67 | func_path_in_repository stringlengths 4 234 | func_name stringlengths 0 314 | whole_func_string stringlengths 52 3.87M | language stringclasses 6
values | func_code_string stringlengths 52 3.87M | func_code_tokens listlengths 15 672k | func_documentation_string stringlengths 1 47.2k | func_documentation_tokens listlengths 1 3.92k | split_name stringclasses 1
value | func_code_url stringlengths 85 339 |
|---|---|---|---|---|---|---|---|---|---|---|
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addLazyLoaderBody | protected function addLazyLoaderBody(&$script, Column $col)
{
$platform = $this->getPlatform();
$clo = strtolower($col->getName());
// pdo_sqlsrv driver requires the use of PDOStatement::bindColumn() or a hex string will be returned
if ($col->getType() === PropelTypes::BLOB && $plat... | php | protected function addLazyLoaderBody(&$script, Column $col)
{
$platform = $this->getPlatform();
$clo = strtolower($col->getName());
// pdo_sqlsrv driver requires the use of PDOStatement::bindColumn() or a hex string will be returned
if ($col->getType() === PropelTypes::BLOB && $plat... | [
"protected",
"function",
"addLazyLoaderBody",
"(",
"&",
"$",
"script",
",",
"Column",
"$",
"col",
")",
"{",
"$",
"platform",
"=",
"$",
"this",
"->",
"getPlatform",
"(",
")",
";",
"$",
"clo",
"=",
"strtolower",
"(",
"$",
"col",
"->",
"getName",
"(",
"... | Adds the function body for the lazy loader method
@param string &$script The script will be modified in this method.
@param Column $col The current column.
@see addLazyLoader() | [
"Adds",
"the",
"function",
"body",
"for",
"the",
"lazy",
"loader",
"method"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L1391-L1446 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addMutatorOpen | protected function addMutatorOpen(&$script, Column $col)
{
$this->addMutatorComment($script, $col);
$this->addMutatorOpenOpen($script, $col);
$this->addMutatorOpenBody($script, $col);
} | php | protected function addMutatorOpen(&$script, Column $col)
{
$this->addMutatorComment($script, $col);
$this->addMutatorOpenOpen($script, $col);
$this->addMutatorOpenBody($script, $col);
} | [
"protected",
"function",
"addMutatorOpen",
"(",
"&",
"$",
"script",
",",
"Column",
"$",
"col",
")",
"{",
"$",
"this",
"->",
"addMutatorComment",
"(",
"$",
"script",
",",
"$",
"col",
")",
";",
"$",
"this",
"->",
"addMutatorOpenOpen",
"(",
"$",
"script",
... | Adds the open of the mutator (setter) method for a column.
@param string &$script The script will be modified in this method.
@param Column $col The current column. | [
"Adds",
"the",
"open",
"of",
"the",
"mutator",
"(",
"setter",
")",
"method",
"for",
"a",
"column",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L1474-L1479 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addMutatorComment | public function addMutatorComment(&$script, Column $col)
{
$clo = strtolower($col->getName());
$script .= "
/**
* Set the value of [$clo] column.
* " . $col->getDescription() . "
* @param " . $col->getPhpType() . " \$v new value
* @return " . $this->getObjectClassname() . ... | php | public function addMutatorComment(&$script, Column $col)
{
$clo = strtolower($col->getName());
$script .= "
/**
* Set the value of [$clo] column.
* " . $col->getDescription() . "
* @param " . $col->getPhpType() . " \$v new value
* @return " . $this->getObjectClassname() . ... | [
"public",
"function",
"addMutatorComment",
"(",
"&",
"$",
"script",
",",
"Column",
"$",
"col",
")",
"{",
"$",
"clo",
"=",
"strtolower",
"(",
"$",
"col",
"->",
"getName",
"(",
")",
")",
";",
"$",
"script",
".=",
"\"\n /**\n * Set the value of [$clo] co... | Adds the comment for a mutator
@param string &$script The script will be modified in this method.
@param Column $col The current column.
@see addMutatorOpen() | [
"Adds",
"the",
"comment",
"for",
"a",
"mutator"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L1489-L1499 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addMutatorOpenOpen | public function addMutatorOpenOpen(&$script, Column $col)
{
$cfc = $col->getPhpName();
$visibility = $col->getMutatorVisibility();
$script .= "
" . $visibility . " function set$cfc(\$v)
{";
} | php | public function addMutatorOpenOpen(&$script, Column $col)
{
$cfc = $col->getPhpName();
$visibility = $col->getMutatorVisibility();
$script .= "
" . $visibility . " function set$cfc(\$v)
{";
} | [
"public",
"function",
"addMutatorOpenOpen",
"(",
"&",
"$",
"script",
",",
"Column",
"$",
"col",
")",
"{",
"$",
"cfc",
"=",
"$",
"col",
"->",
"getPhpName",
"(",
")",
";",
"$",
"visibility",
"=",
"$",
"col",
"->",
"getMutatorVisibility",
"(",
")",
";",
... | Adds the mutator function declaration
@param string &$script The script will be modified in this method.
@param Column $col The current column.
@see addMutatorOpen() | [
"Adds",
"the",
"mutator",
"function",
"declaration"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L1509-L1517 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addMutatorOpenBody | protected function addMutatorOpenBody(&$script, Column $col)
{
$clo = strtolower($col->getName());
$cfc = $col->getPhpName();
if ($col->isLazyLoad()) {
$script .= "
// Allow unsetting the lazy loaded column even when its not loaded.
if (!\$this->" . $clo . "_isLoa... | php | protected function addMutatorOpenBody(&$script, Column $col)
{
$clo = strtolower($col->getName());
$cfc = $col->getPhpName();
if ($col->isLazyLoad()) {
$script .= "
// Allow unsetting the lazy loaded column even when its not loaded.
if (!\$this->" . $clo . "_isLoa... | [
"protected",
"function",
"addMutatorOpenBody",
"(",
"&",
"$",
"script",
",",
"Column",
"$",
"col",
")",
"{",
"$",
"clo",
"=",
"strtolower",
"(",
"$",
"col",
"->",
"getName",
"(",
")",
")",
";",
"$",
"cfc",
"=",
"$",
"col",
"->",
"getPhpName",
"(",
... | Adds the mutator open body part
@param string &$script The script will be modified in this method.
@param Column $col The current column.
@see addMutatorOpen() | [
"Adds",
"the",
"mutator",
"open",
"body",
"part"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L1527-L1545 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addMutatorClose | protected function addMutatorClose(&$script, Column $col)
{
$this->addMutatorCloseBody($script, $col);
$this->addMutatorCloseClose($script, $col);
} | php | protected function addMutatorClose(&$script, Column $col)
{
$this->addMutatorCloseBody($script, $col);
$this->addMutatorCloseClose($script, $col);
} | [
"protected",
"function",
"addMutatorClose",
"(",
"&",
"$",
"script",
",",
"Column",
"$",
"col",
")",
"{",
"$",
"this",
"->",
"addMutatorCloseBody",
"(",
"$",
"script",
",",
"$",
"col",
")",
";",
"$",
"this",
"->",
"addMutatorCloseClose",
"(",
"$",
"scrip... | Adds the close of the mutator (setter) method for a column.
@param string &$script The script will be modified in this method.
@param Column $col The current column. | [
"Adds",
"the",
"close",
"of",
"the",
"mutator",
"(",
"setter",
")",
"method",
"for",
"a",
"column",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L1553-L1557 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addLobMutator | protected function addLobMutator(&$script, Column $col)
{
$this->addMutatorOpen($script, $col);
$clo = strtolower($col->getName());
$script .= "
// Because BLOB columns are streams in PDO we have to assume that they are
// always modified when a new value is passed in. For e... | php | protected function addLobMutator(&$script, Column $col)
{
$this->addMutatorOpen($script, $col);
$clo = strtolower($col->getName());
$script .= "
// Because BLOB columns are streams in PDO we have to assume that they are
// always modified when a new value is passed in. For e... | [
"protected",
"function",
"addLobMutator",
"(",
"&",
"$",
"script",
",",
"Column",
"$",
"col",
")",
"{",
"$",
"this",
"->",
"addMutatorOpen",
"(",
"$",
"script",
",",
"$",
"col",
")",
";",
"$",
"clo",
"=",
"strtolower",
"(",
"$",
"col",
"->",
"getName... | Adds a setter for BLOB columns.
@param string &$script The script will be modified in this method.
@param Column $col The current column.
@see parent::addColumnMutators() | [
"Adds",
"a",
"setter",
"for",
"BLOB",
"columns",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L1653-L1671 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addTemporalMutator | protected function addTemporalMutator(&$script, Column $col)
{
$cfc = $col->getPhpName();
$clo = strtolower($col->getName());
$visibility = $col->getMutatorVisibility();
$dateTimeClass = $this->getBuildProperty('dateTimeClass');
if (!$dateTimeClass) {
$dateTimeCl... | php | protected function addTemporalMutator(&$script, Column $col)
{
$cfc = $col->getPhpName();
$clo = strtolower($col->getName());
$visibility = $col->getMutatorVisibility();
$dateTimeClass = $this->getBuildProperty('dateTimeClass');
if (!$dateTimeClass) {
$dateTimeCl... | [
"protected",
"function",
"addTemporalMutator",
"(",
"&",
"$",
"script",
",",
"Column",
"$",
"col",
")",
"{",
"$",
"cfc",
"=",
"$",
"col",
"->",
"getPhpName",
"(",
")",
";",
"$",
"clo",
"=",
"strtolower",
"(",
"$",
"col",
"->",
"getName",
"(",
")",
... | Adds a setter method for date/time/timestamp columns.
@param string &$script The script will be modified in this method.
@param Column $col The current column.
@see parent::addColumnMutators() | [
"Adds",
"a",
"setter",
"method",
"for",
"date",
"/",
"time",
"/",
"timestamp",
"columns",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L1681-L1723 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addObjectMutator | protected function addObjectMutator(&$script, Column $col)
{
$clo = strtolower($col->getName());
$cloUnserialized = $clo . '_unserialized';
$this->addMutatorOpen($script, $col);
$script .= "
if (\$this->$cloUnserialized !== \$v) {
\$this->$cloUnserialized = \$v;
... | php | protected function addObjectMutator(&$script, Column $col)
{
$clo = strtolower($col->getName());
$cloUnserialized = $clo . '_unserialized';
$this->addMutatorOpen($script, $col);
$script .= "
if (\$this->$cloUnserialized !== \$v) {
\$this->$cloUnserialized = \$v;
... | [
"protected",
"function",
"addObjectMutator",
"(",
"&",
"$",
"script",
",",
"Column",
"$",
"col",
")",
"{",
"$",
"clo",
"=",
"strtolower",
"(",
"$",
"col",
"->",
"getName",
"(",
")",
")",
";",
"$",
"cloUnserialized",
"=",
"$",
"clo",
".",
"'_unserialize... | Adds a setter for Object columns.
@param string &$script The script will be modified in this method.
@param Column $col The current column.
@see parent::addColumnMutators() | [
"Adds",
"a",
"setter",
"for",
"Object",
"columns",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L1748-L1762 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addAddArrayElement | protected function addAddArrayElement(&$script, Column $col)
{
$clo = strtolower($col->getName());
$cfc = $col->getPhpName();
$visibility = $col->getAccessorVisibility();
$singularPhpName = rtrim($cfc, 's');
$script .= "
/**
* Adds a value to the [$clo] array column ... | php | protected function addAddArrayElement(&$script, Column $col)
{
$clo = strtolower($col->getName());
$cfc = $col->getPhpName();
$visibility = $col->getAccessorVisibility();
$singularPhpName = rtrim($cfc, 's');
$script .= "
/**
* Adds a value to the [$clo] array column ... | [
"protected",
"function",
"addAddArrayElement",
"(",
"&",
"$",
"script",
",",
"Column",
"$",
"col",
")",
"{",
"$",
"clo",
"=",
"strtolower",
"(",
"$",
"col",
"->",
"getName",
"(",
")",
")",
";",
"$",
"cfc",
"=",
"$",
"col",
"->",
"getPhpName",
"(",
... | Adds a push method for an array column.
@param string &$script The script will be modified in this method.
@param Column $col The current column. | [
"Adds",
"a",
"push",
"method",
"for",
"an",
"array",
"column",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L1794-L1829 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addEnumMutator | protected function addEnumMutator(&$script, Column $col)
{
$clo = strtolower($col->getName());
$script .= "
/**
* Set the value of [$clo] column.
* " . $col->getDescription() . "
* @param " . $col->getPhpType() . " \$v new value
* @return " . $this... | php | protected function addEnumMutator(&$script, Column $col)
{
$clo = strtolower($col->getName());
$script .= "
/**
* Set the value of [$clo] column.
* " . $col->getDescription() . "
* @param " . $col->getPhpType() . " \$v new value
* @return " . $this... | [
"protected",
"function",
"addEnumMutator",
"(",
"&",
"$",
"script",
",",
"Column",
"$",
"col",
")",
"{",
"$",
"clo",
"=",
"strtolower",
"(",
"$",
"col",
"->",
"getName",
"(",
")",
")",
";",
"$",
"script",
".=",
"\"\n /**\n * Set the value of [$clo] co... | Adds a setter for Enum columns.
@param string &$script The script will be modified in this method.
@param Column $col The current column.
@see parent::addColumnMutators() | [
"Adds",
"a",
"setter",
"for",
"Enum",
"columns",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L1887-L1917 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addBooleanMutator | protected function addBooleanMutator(&$script, Column $col)
{
$clo = strtolower($col->getName());
$this->addBooleanMutatorComment($script, $col);
$this->addMutatorOpenOpen($script, $col);
$this->addMutatorOpenBody($script, $col);
$script .= "
if (\$v !== null) {
... | php | protected function addBooleanMutator(&$script, Column $col)
{
$clo = strtolower($col->getName());
$this->addBooleanMutatorComment($script, $col);
$this->addMutatorOpenOpen($script, $col);
$this->addMutatorOpenBody($script, $col);
$script .= "
if (\$v !== null) {
... | [
"protected",
"function",
"addBooleanMutator",
"(",
"&",
"$",
"script",
",",
"Column",
"$",
"col",
")",
"{",
"$",
"clo",
"=",
"strtolower",
"(",
"$",
"col",
"->",
"getName",
"(",
")",
")",
";",
"$",
"this",
"->",
"addBooleanMutatorComment",
"(",
"$",
"s... | Adds setter method for boolean columns.
@param string &$script The script will be modified in this method.
@param Column $col The current column.
@see parent::addColumnMutators() | [
"Adds",
"setter",
"method",
"for",
"boolean",
"columns",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L1927-L1952 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addDefaultMutator | protected function addDefaultMutator(&$script, Column $col)
{
$clo = strtolower($col->getName());
$this->addMutatorOpen($script, $col);
// Perform type-casting to ensure that we can use type-sensitive
// checking in mutators.
if ($col->isPhpPrimitiveType()) {
if... | php | protected function addDefaultMutator(&$script, Column $col)
{
$clo = strtolower($col->getName());
$this->addMutatorOpen($script, $col);
// Perform type-casting to ensure that we can use type-sensitive
// checking in mutators.
if ($col->isPhpPrimitiveType()) {
if... | [
"protected",
"function",
"addDefaultMutator",
"(",
"&",
"$",
"script",
",",
"Column",
"$",
"col",
")",
"{",
"$",
"clo",
"=",
"strtolower",
"(",
"$",
"col",
"->",
"getName",
"(",
")",
")",
";",
"$",
"this",
"->",
"addMutatorOpen",
"(",
"$",
"script",
... | Adds setter method for "normal" columns.
@param string &$script The script will be modified in this method.
@param Column $col The current column.
@see parent::addColumnMutators() | [
"Adds",
"setter",
"method",
"for",
"normal",
"columns",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L1980-L2010 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addHydrateBody | protected function addHydrateBody(&$script)
{
$table = $this->getTable();
$platform = $this->getPlatform();
$script .= "
try {
";
$n = 0;
foreach ($table->getColumns() as $col) {
if (!$col->isLazyLoad()) {
$clo = strtolower($col->getName())... | php | protected function addHydrateBody(&$script)
{
$table = $this->getTable();
$platform = $this->getPlatform();
$script .= "
try {
";
$n = 0;
foreach ($table->getColumns() as $col) {
if (!$col->isLazyLoad()) {
$clo = strtolower($col->getName())... | [
"protected",
"function",
"addHydrateBody",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"platform",
"=",
"$",
"this",
"->",
"getPlatform",
"(",
")",
";",
"$",
"script",
".=",
"\"\n try ... | Adds the function body for the hydrate method
@param string &$script The script will be modified in this method.
@see addHydrate() | [
"Adds",
"the",
"function",
"body",
"for",
"the",
"hydrate",
"method"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L2167-L2236 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addBuildPkeyCriteria | protected function addBuildPkeyCriteria(&$script)
{
$this->addBuildPkeyCriteriaComment($script);
$this->addBuildPkeyCriteriaOpen($script);
$this->addBuildPkeyCriteriaBody($script);
$this->addBuildPkeyCriteriaClose($script);
} | php | protected function addBuildPkeyCriteria(&$script)
{
$this->addBuildPkeyCriteriaComment($script);
$this->addBuildPkeyCriteriaOpen($script);
$this->addBuildPkeyCriteriaBody($script);
$this->addBuildPkeyCriteriaClose($script);
} | [
"protected",
"function",
"addBuildPkeyCriteria",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"this",
"->",
"addBuildPkeyCriteriaComment",
"(",
"$",
"script",
")",
";",
"$",
"this",
"->",
"addBuildPkeyCriteriaOpen",
"(",
"$",
"script",
")",
";",
"$",
"this",
"->"... | Adds the buildPkeyCriteria method
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"buildPkeyCriteria",
"method"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L2257-L2263 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addBuildPkeyCriteriaBody | protected function addBuildPkeyCriteriaBody(&$script)
{
$script .= "
\$criteria = new Criteria(" . $this->getPeerClassname() . "::DATABASE_NAME);";
foreach ($this->getTable()->getPrimaryKey() as $col) {
$clo = strtolower($col->getName());
$script .= "
\$criter... | php | protected function addBuildPkeyCriteriaBody(&$script)
{
$script .= "
\$criteria = new Criteria(" . $this->getPeerClassname() . "::DATABASE_NAME);";
foreach ($this->getTable()->getPrimaryKey() as $col) {
$clo = strtolower($col->getName());
$script .= "
\$criter... | [
"protected",
"function",
"addBuildPkeyCriteriaBody",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"script",
".=",
"\"\n \\$criteria = new Criteria(\"",
".",
"$",
"this",
"->",
"getPeerClassname",
"(",
")",
".",
"\"::DATABASE_NAME);\"",
";",
"foreach",
"(",
"$",
... | Adds the function body for the buildPkeyCriteria method
@param string &$script The script will be modified in this method.
@see addBuildPkeyCriteria() | [
"Adds",
"the",
"function",
"body",
"for",
"the",
"buildPkeyCriteria",
"method"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L2306-L2315 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addBuildCriteriaBody | protected function addBuildCriteriaBody(&$script)
{
$script .= "
\$criteria = new Criteria(" . $this->getPeerClassname() . "::DATABASE_NAME);
";
foreach ($this->getTable()->getColumns() as $col) {
$clo = strtolower($col->getName());
$script .= "
if (\$this->is... | php | protected function addBuildCriteriaBody(&$script)
{
$script .= "
\$criteria = new Criteria(" . $this->getPeerClassname() . "::DATABASE_NAME);
";
foreach ($this->getTable()->getColumns() as $col) {
$clo = strtolower($col->getName());
$script .= "
if (\$this->is... | [
"protected",
"function",
"addBuildCriteriaBody",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"script",
".=",
"\"\n \\$criteria = new Criteria(\"",
".",
"$",
"this",
"->",
"getPeerClassname",
"(",
")",
".",
"\"::DATABASE_NAME);\n\"",
";",
"foreach",
"(",
"$",
"t... | Adds the function body of the buildCriteria method
@param string &$script The script will be modified in this method.
@see addBuildCriteria() | [
"Adds",
"the",
"function",
"body",
"of",
"the",
"buildCriteria",
"method"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L2384-L2394 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addToArray | protected function addToArray(&$script)
{
$fks = $this->getTable()->getForeignKeys();
$referrers = $this->getTable()->getReferrers();
$hasFks = count($fks) > 0 || count($referrers) > 0;
$objectClassName = $this->getObjectClassname();
$pkGetter = $this->getTable()->hasComposit... | php | protected function addToArray(&$script)
{
$fks = $this->getTable()->getForeignKeys();
$referrers = $this->getTable()->getReferrers();
$hasFks = count($fks) > 0 || count($referrers) > 0;
$objectClassName = $this->getObjectClassname();
$pkGetter = $this->getTable()->hasComposit... | [
"protected",
"function",
"addToArray",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"fks",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
"->",
"getForeignKeys",
"(",
")",
";",
"$",
"referrers",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
"->",
"getRefer... | Adds the toArray method
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"toArray",
"method"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L2417-L2500 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addFromArray | protected function addFromArray(&$script)
{
$defaultKeyType = $this->getDefaultKeyType();
$table = $this->getTable();
$script .= "
/**
* Populates the object using an array.
*
* This is particularly useful when populating an object from one of the
* request arrays (e.... | php | protected function addFromArray(&$script)
{
$defaultKeyType = $this->getDefaultKeyType();
$table = $this->getTable();
$script .= "
/**
* Populates the object using an array.
*
* This is particularly useful when populating an object from one of the
* request arrays (e.... | [
"protected",
"function",
"addFromArray",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"defaultKeyType",
"=",
"$",
"this",
"->",
"getDefaultKeyType",
"(",
")",
";",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"script",
".=",
"\"\n ... | addSetByPosition() | [
"addSetByPosition",
"()"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L2744-L2780 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addReload | protected function addReload(&$script)
{
$table = $this->getTable();
$script .= "
/**
* 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.
... | php | protected function addReload(&$script)
{
$table = $this->getTable();
$script .= "
/**
* 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.
... | [
"protected",
"function",
"addReload",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"script",
".=",
"\"\n /**\n * Reloads this object from datastore based on primary key and (optionally) resets all associat... | Adds a reload() method to re-fetch the data for this object from the database.
@param string &$script The script will be modified in this method. | [
"Adds",
"a",
"reload",
"()",
"method",
"to",
"re",
"-",
"fetch",
"the",
"data",
"for",
"this",
"object",
"from",
"the",
"database",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L2908-L2992 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addValidationMethods | protected function addValidationMethods(&$script)
{
$this->addValidationFailuresAttribute($script);
$this->addGetValidationFailures($script);
$this->addValidate($script);
$this->addDoValidate($script);
} | php | protected function addValidationMethods(&$script)
{
$this->addValidationFailuresAttribute($script);
$this->addGetValidationFailures($script);
$this->addValidate($script);
$this->addDoValidate($script);
} | [
"protected",
"function",
"addValidationMethods",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"this",
"->",
"addValidationFailuresAttribute",
"(",
"$",
"script",
")",
";",
"$",
"this",
"->",
"addGetValidationFailures",
"(",
"$",
"script",
")",
";",
"$",
"this",
"... | Adds the methods related to the validation of the object.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"methods",
"related",
"to",
"the",
"validation",
"of",
"the",
"object",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L3014-L3020 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addSetPrimaryKey_SinglePK | protected function addSetPrimaryKey_SinglePK(&$script)
{
$pkeys = $this->getTable()->getPrimaryKey();
$col = $pkeys[0];
$clo = strtolower($col->getName());
$ctype = $col->getPhpType();
$script .= "
/**
* Generic method to set the primary key ($clo column).
*
... | php | protected function addSetPrimaryKey_SinglePK(&$script)
{
$pkeys = $this->getTable()->getPrimaryKey();
$col = $pkeys[0];
$clo = strtolower($col->getName());
$ctype = $col->getPhpType();
$script .= "
/**
* Generic method to set the primary key ($clo column).
*
... | [
"protected",
"function",
"addSetPrimaryKey_SinglePK",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"pkeys",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
"->",
"getPrimaryKey",
"(",
")",
";",
"$",
"col",
"=",
"$",
"pkeys",
"[",
"0",
"]",
";",
"$",
"clo",
... | Adds the setPrimaryKey() method for tables that contain a single-column primary key.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"setPrimaryKey",
"()",
"method",
"for",
"tables",
"that",
"contain",
"a",
"single",
"-",
"column",
"primary",
"key",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L3179-L3199 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addFKMutator | protected function addFKMutator(&$script, ForeignKey $fk)
{
$table = $this->getTable();
$tblFK = $this->getForeignTable($fk);
$joinTableObjectBuilder = $this->getNewObjectBuilder($tblFK);
$className = $joinTableObjectBuilder->getObjectClassname();
$varName = $this->getFKVar... | php | protected function addFKMutator(&$script, ForeignKey $fk)
{
$table = $this->getTable();
$tblFK = $this->getForeignTable($fk);
$joinTableObjectBuilder = $this->getNewObjectBuilder($tblFK);
$className = $joinTableObjectBuilder->getObjectClassname();
$varName = $this->getFKVar... | [
"protected",
"function",
"addFKMutator",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"fk",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"tblFK",
"=",
"$",
"this",
"->",
"getForeignTable",
"(",
"$",
"fk",
")",
... | Adds the mutator (setter) method for setting an fkey related object.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"mutator",
"(",
"setter",
")",
"method",
"for",
"setting",
"an",
"fkey",
"related",
"object",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L3379-L3442 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addFKByKeyMutator | protected function addFKByKeyMutator(&$script, ForeignKey $fk)
{
$table = $this->getTable();
#$className = $this->getForeignTable($fk)->getPhpName();
$methodAffix = $this->getFKPhpNameAffix($fk);
#$varName = $this->getFKVarName($fk);
$script .= "
/**
* Provides con... | php | protected function addFKByKeyMutator(&$script, ForeignKey $fk)
{
$table = $this->getTable();
#$className = $this->getForeignTable($fk)->getPhpName();
$methodAffix = $this->getFKPhpNameAffix($fk);
#$varName = $this->getFKVarName($fk);
$script .= "
/**
* Provides con... | [
"protected",
"function",
"addFKByKeyMutator",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"fk",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"#$className = $this->getForeignTable($fk)->getPhpName();",
"$",
"methodAffix",
"=",
"... | Adds a convenience method for setting a related object by specifying the primary key.
This can be used in conjunction with the getPrimaryKey() for systems where nothing is known
about the actual objects being related.
@param string &$script The script will be modified in this method. | [
"Adds",
"a",
"convenience",
"method",
"for",
"setting",
"a",
"related",
"object",
"by",
"specifying",
"the",
"primary",
"key",
".",
"This",
"can",
"be",
"used",
"in",
"conjunction",
"with",
"the",
"getPrimaryKey",
"()",
"for",
"systems",
"where",
"nothing",
... | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L3547-L3600 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addRefFKGetJoinMethods | protected function addRefFKGetJoinMethods(&$script, ForeignKey $refFK)
{
$table = $this->getTable();
$tblFK = $refFK->getTable();
$join_behavior = $this->getGeneratorConfig()->getBuildProperty('useLeftJoinsInDoJoinMethods') ? 'Criteria::LEFT_JOIN' : 'Criteria::INNER_JOIN';
$peerClas... | php | protected function addRefFKGetJoinMethods(&$script, ForeignKey $refFK)
{
$table = $this->getTable();
$tblFK = $refFK->getTable();
$join_behavior = $this->getGeneratorConfig()->getBuildProperty('useLeftJoinsInDoJoinMethods') ? 'Criteria::LEFT_JOIN' : 'Criteria::INNER_JOIN';
$peerClas... | [
"protected",
"function",
"addRefFKGetJoinMethods",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"refFK",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"tblFK",
"=",
"$",
"refFK",
"->",
"getTable",
"(",
")",
";",
... | Adds the method that fetches fkey-related (referencing) objects but also joins in data from another table.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"method",
"that",
"fetches",
"fkey",
"-",
"related",
"(",
"referencing",
")",
"objects",
"but",
"also",
"joins",
"in",
"data",
"from",
"another",
"table",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L3607-L3669 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addRefFKAttributes | protected function addRefFKAttributes(&$script, ForeignKey $refFK)
{
$joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable());
$className = $joinedTableObjectBuilder->getObjectClassname();
if ($refFK->isLocalPrimaryKey()) {
$script .= "
/**
* @var ... | php | protected function addRefFKAttributes(&$script, ForeignKey $refFK)
{
$joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable());
$className = $joinedTableObjectBuilder->getObjectClassname();
if ($refFK->isLocalPrimaryKey()) {
$script .= "
/**
* @var ... | [
"protected",
"function",
"addRefFKAttributes",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"refFK",
")",
"{",
"$",
"joinedTableObjectBuilder",
"=",
"$",
"this",
"->",
"getNewObjectBuilder",
"(",
"$",
"refFK",
"->",
"getTable",
"(",
")",
")",
";",
"$",
... | Adds the attributes used to store objects that have referrer fkey relationships to this object.
<code>protected collVarName;</code>
<code>private lastVarNameCriteria = null;</code>
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"attributes",
"used",
"to",
"store",
"objects",
"that",
"have",
"referrer",
"fkey",
"relationships",
"to",
"this",
"object",
".",
"<code",
">",
"protected",
"collVarName",
";",
"<",
"/",
"code",
">",
"<code",
">",
"private",
"lastVarNameCriteria... | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L3684-L3705 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addRefFKInit | protected function addRefFKInit(&$script, ForeignKey $refFK)
{
$relCol = $this->getRefFKPhpNameAffix($refFK, $plural = true);
$collName = $this->getRefFKCollVarName($refFK);
$script .= "
/**
* Initializes the $collName collection.
*
* By default this just sets the $collNa... | php | protected function addRefFKInit(&$script, ForeignKey $refFK)
{
$relCol = $this->getRefFKPhpNameAffix($refFK, $plural = true);
$collName = $this->getRefFKCollVarName($refFK);
$script .= "
/**
* Initializes the $collName collection.
*
* By default this just sets the $collNa... | [
"protected",
"function",
"addRefFKInit",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"refFK",
")",
"{",
"$",
"relCol",
"=",
"$",
"this",
"->",
"getRefFKPhpNameAffix",
"(",
"$",
"refFK",
",",
"$",
"plural",
"=",
"true",
")",
";",
"$",
"collName",
"... | Adds the method that initializes the referrer fkey collection.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"method",
"that",
"initializes",
"the",
"referrer",
"fkey",
"collection",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L3826-L3853 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addRefFKAdd | protected function addRefFKAdd(&$script, ForeignKey $refFK)
{
$tblFK = $refFK->getTable();
$joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable());
$className = $joinedTableObjectBuilder->getObjectClassname();
if ($tblFK->getChildrenColumn()) {
$class... | php | protected function addRefFKAdd(&$script, ForeignKey $refFK)
{
$tblFK = $refFK->getTable();
$joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable());
$className = $joinedTableObjectBuilder->getObjectClassname();
if ($tblFK->getChildrenColumn()) {
$class... | [
"protected",
"function",
"addRefFKAdd",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"refFK",
")",
"{",
"$",
"tblFK",
"=",
"$",
"refFK",
"->",
"getTable",
"(",
")",
";",
"$",
"joinedTableObjectBuilder",
"=",
"$",
"this",
"->",
"getNewObjectBuilder",
"(... | Adds the method that adds an object into the referrer fkey collection.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"method",
"that",
"adds",
"an",
"object",
"into",
"the",
"referrer",
"fkey",
"collection",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L3860-L3903 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addRefFKCount | protected function addRefFKCount(&$script, ForeignKey $refFK)
{
$table = $this->getTable();
$tblFK = $refFK->getTable();
$peerClassname = $this->getStubPeerBuilder()->getClassname();
$fkQueryClassname = $this->getNewStubQueryBuilder($refFK->getTable())->getClassname();
$relC... | php | protected function addRefFKCount(&$script, ForeignKey $refFK)
{
$table = $this->getTable();
$tblFK = $refFK->getTable();
$peerClassname = $this->getStubPeerBuilder()->getClassname();
$fkQueryClassname = $this->getNewStubQueryBuilder($refFK->getTable())->getClassname();
$relC... | [
"protected",
"function",
"addRefFKCount",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"refFK",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"tblFK",
"=",
"$",
"refFK",
"->",
"getTable",
"(",
")",
";",
"$",
"p... | Adds the method that returns the size of the referrer fkey collection.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"method",
"that",
"returns",
"the",
"size",
"of",
"the",
"referrer",
"fkey",
"collection",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L3910-L3958 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addPKRefFKGet | protected function addPKRefFKGet(&$script, ForeignKey $refFK)
{
$table = $this->getTable();
$tblFK = $refFK->getTable();
$joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable());
$className = $joinedTableObjectBuilder->getObjectClassname();
$queryClassname... | php | protected function addPKRefFKGet(&$script, ForeignKey $refFK)
{
$table = $this->getTable();
$tblFK = $refFK->getTable();
$joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable());
$className = $joinedTableObjectBuilder->getObjectClassname();
$queryClassname... | [
"protected",
"function",
"addPKRefFKGet",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"refFK",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"tblFK",
"=",
"$",
"refFK",
"->",
"getTable",
"(",
")",
";",
"$",
"j... | Adds the method that gets a one-to-one related referrer fkey.
This is for one-to-one relationship special case.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"method",
"that",
"gets",
"a",
"one",
"-",
"to",
"-",
"one",
"related",
"referrer",
"fkey",
".",
"This",
"is",
"for",
"one",
"-",
"to",
"-",
"one",
"relationship",
"special",
"case",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L4180-L4211 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addPKRefFKSet | protected function addPKRefFKSet(&$script, ForeignKey $refFK)
{
$tblFK = $refFK->getTable();
$joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable());
$className = $joinedTableObjectBuilder->getObjectClassname();
$varName = $this->getPKRefFKVarName($refFK);
... | php | protected function addPKRefFKSet(&$script, ForeignKey $refFK)
{
$tblFK = $refFK->getTable();
$joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable());
$className = $joinedTableObjectBuilder->getObjectClassname();
$varName = $this->getPKRefFKVarName($refFK);
... | [
"protected",
"function",
"addPKRefFKSet",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"refFK",
")",
"{",
"$",
"tblFK",
"=",
"$",
"refFK",
"->",
"getTable",
"(",
")",
";",
"$",
"joinedTableObjectBuilder",
"=",
"$",
"this",
"->",
"getNewObjectBuilder",
... | Adds the method that sets a one-to-one related referrer fkey.
This is for one-to-one relationships special case.
@param string &$script The script will be modified in this method.
@param ForeignKey $refFK The referencing foreign key. | [
"Adds",
"the",
"method",
"that",
"sets",
"a",
"one",
"-",
"to",
"-",
"one",
"related",
"referrer",
"fkey",
".",
"This",
"is",
"for",
"one",
"-",
"to",
"-",
"one",
"relationships",
"special",
"case",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L4220-L4249 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addCrossFKAttributes | protected function addCrossFKAttributes(&$script, ForeignKey $crossFK)
{
$joinedTableObjectBuilder = $this->getNewObjectBuilder($crossFK->getForeignTable());
$className = $joinedTableObjectBuilder->getObjectClassname();
$relatedName = $this->getFKPhpNameAffix($crossFK, $plural = true);
... | php | protected function addCrossFKAttributes(&$script, ForeignKey $crossFK)
{
$joinedTableObjectBuilder = $this->getNewObjectBuilder($crossFK->getForeignTable());
$className = $joinedTableObjectBuilder->getObjectClassname();
$relatedName = $this->getFKPhpNameAffix($crossFK, $plural = true);
... | [
"protected",
"function",
"addCrossFKAttributes",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"crossFK",
")",
"{",
"$",
"joinedTableObjectBuilder",
"=",
"$",
"this",
"->",
"getNewObjectBuilder",
"(",
"$",
"crossFK",
"->",
"getForeignTable",
"(",
")",
")",
... | addPKRefFKSet | [
"addPKRefFKSet"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L4251-L4262 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addCrossFKClear | protected function addCrossFKClear(&$script, ForeignKey $crossFK)
{
$relCol = $this->getFKPhpNameAffix($crossFK, $plural = true);
$collName = $this->getCrossFKVarName($crossFK);
$script .= "
/**
* Clears out the $collName collection
*
* This does not modify the database; ... | php | protected function addCrossFKClear(&$script, ForeignKey $crossFK)
{
$relCol = $this->getFKPhpNameAffix($crossFK, $plural = true);
$collName = $this->getCrossFKVarName($crossFK);
$script .= "
/**
* Clears out the $collName collection
*
* This does not modify the database; ... | [
"protected",
"function",
"addCrossFKClear",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"crossFK",
")",
"{",
"$",
"relCol",
"=",
"$",
"this",
"->",
"getFKPhpNameAffix",
"(",
"$",
"crossFK",
",",
"$",
"plural",
"=",
"true",
")",
";",
"$",
"collName",... | Adds the method that clears the referrer fkey collection.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"method",
"that",
"clears",
"the",
"referrer",
"fkey",
"collection",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L4384-L4407 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addCrossFKInit | protected function addCrossFKInit(&$script, ForeignKey $crossFK)
{
$relCol = $this->getFKPhpNameAffix($crossFK, $plural = true);
$collName = $this->getCrossFKVarName($crossFK);
$relatedObjectClassName = $this->getNewStubObjectBuilder($crossFK->getForeignTable())->getClassname();
$sc... | php | protected function addCrossFKInit(&$script, ForeignKey $crossFK)
{
$relCol = $this->getFKPhpNameAffix($crossFK, $plural = true);
$collName = $this->getCrossFKVarName($crossFK);
$relatedObjectClassName = $this->getNewStubObjectBuilder($crossFK->getForeignTable())->getClassname();
$sc... | [
"protected",
"function",
"addCrossFKInit",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"crossFK",
")",
"{",
"$",
"relCol",
"=",
"$",
"this",
"->",
"getFKPhpNameAffix",
"(",
"$",
"crossFK",
",",
"$",
"plural",
"=",
"true",
")",
";",
"$",
"collName",
... | Adds the method that initializes the referrer fkey collection.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"method",
"that",
"initializes",
"the",
"referrer",
"fkey",
"collection",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L4414-L4436 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addCrossFKAdd | protected function addCrossFKAdd(&$script, ForeignKey $refFK, ForeignKey $crossFK)
{
$relCol = $this->getFKPhpNameAffix($crossFK, $plural = true);
$collName = $this->getCrossFKVarName($crossFK);
$tblFK = $refFK->getTable();
$joinedTableObjectBuilder = $this->getNewObjectBuilder($re... | php | protected function addCrossFKAdd(&$script, ForeignKey $refFK, ForeignKey $crossFK)
{
$relCol = $this->getFKPhpNameAffix($crossFK, $plural = true);
$collName = $this->getCrossFKVarName($crossFK);
$tblFK = $refFK->getTable();
$joinedTableObjectBuilder = $this->getNewObjectBuilder($re... | [
"protected",
"function",
"addCrossFKAdd",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"refFK",
",",
"ForeignKey",
"$",
"crossFK",
")",
"{",
"$",
"relCol",
"=",
"$",
"this",
"->",
"getFKPhpNameAffix",
"(",
"$",
"crossFK",
",",
"$",
"plural",
"=",
"tr... | Adds the method that adds an object into the referrer fkey collection.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"method",
"that",
"adds",
"an",
"object",
"into",
"the",
"referrer",
"fkey",
"collection",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L4572-L4615 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addCrossFKRemove | protected function addCrossFKRemove(&$script, ForeignKey $refFK, ForeignKey $crossFK)
{
$relCol = $this->getFKPhpNameAffix($crossFK, $plural = true);
$collName = 'coll' . $relCol;
$tblFK = $refFK->getTable();
$joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable()... | php | protected function addCrossFKRemove(&$script, ForeignKey $refFK, ForeignKey $crossFK)
{
$relCol = $this->getFKPhpNameAffix($crossFK, $plural = true);
$collName = 'coll' . $relCol;
$tblFK = $refFK->getTable();
$joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable()... | [
"protected",
"function",
"addCrossFKRemove",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"refFK",
",",
"ForeignKey",
"$",
"crossFK",
")",
"{",
"$",
"relCol",
"=",
"$",
"this",
"->",
"getFKPhpNameAffix",
"(",
"$",
"crossFK",
",",
"$",
"plural",
"=",
... | Adds the method that remove an object from the referrer fkey collection.
@param string $script The script will be modified in this method. | [
"Adds",
"the",
"method",
"that",
"remove",
"an",
"object",
"from",
"the",
"referrer",
"fkey",
"collection",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L4662-L4704 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addDoInsertBodyRaw | protected function addDoInsertBodyRaw()
{
$this->declareClasses('Propel', 'PDO');
$table = $this->getTable();
$peerClassname = $this->getPeerClassname();
$platform = $this->getPlatform();
$primaryKeyMethodInfo = '';
if ($table->getIdMethodParameters()) {
$... | php | protected function addDoInsertBodyRaw()
{
$this->declareClasses('Propel', 'PDO');
$table = $this->getTable();
$peerClassname = $this->getPeerClassname();
$platform = $this->getPlatform();
$primaryKeyMethodInfo = '';
if ($table->getIdMethodParameters()) {
$... | [
"protected",
"function",
"addDoInsertBodyRaw",
"(",
")",
"{",
"$",
"this",
"->",
"declareClasses",
"(",
"'Propel'",
",",
"'PDO'",
")",
";",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"peerClassname",
"=",
"$",
"this",
"->",
"... | Boosts ActiveRecord::doInsert() by doing more calculations at buildtime. | [
"Boosts",
"ActiveRecord",
"::",
"doInsert",
"()",
"by",
"doing",
"more",
"calculations",
"at",
"buildtime",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L4970-L5097 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addSaveBody | protected function addSaveBody(&$script)
{
$table = $this->getTable();
$reloadOnUpdate = $table->isReloadOnUpdate();
$reloadOnInsert = $table->isReloadOnInsert();
$script .= "
if (\$this->isDeleted()) {
throw new PropelException(\"You cannot save an object that h... | php | protected function addSaveBody(&$script)
{
$table = $this->getTable();
$reloadOnUpdate = $table->isReloadOnUpdate();
$reloadOnInsert = $table->isReloadOnInsert();
$script .= "
if (\$this->isDeleted()) {
throw new PropelException(\"You cannot save an object that h... | [
"protected",
"function",
"addSaveBody",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"reloadOnUpdate",
"=",
"$",
"table",
"->",
"isReloadOnUpdate",
"(",
")",
";",
"$",
"reloadOnInsert",
"=",
"... | Adds the function body for the save method
@param string &$script The script will be modified in this method.
@see addSave() | [
"Adds",
"the",
"function",
"body",
"for",
"the",
"save",
"method"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L5229-L5330 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addDoValidate | protected function addDoValidate(&$script)
{
$table = $this->getTable();
$script .= "
/**
* 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 <... | php | protected function addDoValidate(&$script)
{
$table = $this->getTable();
$script .= "
/**
* 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 <... | [
"protected",
"function",
"addDoValidate",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"script",
".=",
"\"\n /**\n * This function performs the validation work for complex object models.\n *\n * In... | Adds the workhouse doValidate() method.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"workhouse",
"doValidate",
"()",
"method",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L5419-L5502 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addEnsureConsistency | protected function addEnsureConsistency(&$script)
{
$table = $this->getTable();
$script .= "
/**
* 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 ch... | php | protected function addEnsureConsistency(&$script)
{
$table = $this->getTable();
$script .= "
/**
* 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 ch... | [
"protected",
"function",
"addEnsureConsistency",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"script",
".=",
"\"\n /**\n * Checks and repairs the internal consistency of the object.\n *\n * This m... | Adds the ensureConsistency() method to ensure that internal state is correct.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"ensureConsistency",
"()",
"method",
"to",
"ensure",
"that",
"internal",
"state",
"is",
"correct",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L5509-L5552 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addCopy | protected function addCopy(&$script)
{
$this->addCopyInto($script);
$table = $this->getTable();
$script .= "
/**
* 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 ... | php | protected function addCopy(&$script)
{
$this->addCopyInto($script);
$table = $this->getTable();
$script .= "
/**
* 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 ... | [
"protected",
"function",
"addCopy",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"this",
"->",
"addCopyInto",
"(",
"$",
"script",
")",
";",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"script",
".=",
"\"\n /**\n * Makes a copy... | Adds the copy() method, which (in complex OM) includes the $deepCopy param for making copies of related objects.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"copy",
"()",
"method",
"which",
"(",
"in",
"complex",
"OM",
")",
"includes",
"the",
"$deepCopy",
"param",
"for",
"making",
"copies",
"of",
"related",
"objects",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L5559-L5588 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addCopyInto | protected function addCopyInto(&$script)
{
$table = $this->getTable();
$script .= "
/**
* 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 ... | php | protected function addCopyInto(&$script)
{
$table = $this->getTable();
$script .= "
/**
* 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 ... | [
"protected",
"function",
"addCopyInto",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"script",
".=",
"\"\n /**\n * Sets contents of passed object to values from current object.\n *\n * If desired, ... | Adds the copyInto() method, which takes an object and sets contents to match current object.
In complex OM this method includes the $deepCopy param for making copies of related objects.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"copyInto",
"()",
"method",
"which",
"takes",
"an",
"object",
"and",
"sets",
"contents",
"to",
"match",
"current",
"object",
".",
"In",
"complex",
"OM",
"this",
"method",
"includes",
"the",
"$deepCopy",
"param",
"for",
"making",
"copies",
"of"... | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L5596-L5708 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addClear | protected function addClear(&$script)
{
$table = $this->getTable();
$script .= "
/**
* Clears the current object and sets all attributes to their default values
*/
public function clear()
{";
foreach ($table->getColumns() as $col) {
$clo = strtolower($col->... | php | protected function addClear(&$script)
{
$table = $this->getTable();
$script .= "
/**
* Clears the current object and sets all attributes to their default values
*/
public function clear()
{";
foreach ($table->getColumns() as $col) {
$clo = strtolower($col->... | [
"protected",
"function",
"addClear",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"script",
".=",
"\"\n /**\n * Clears the current object and sets all attributes to their default values\n */\n publi... | Adds clear method
@param string &$script The script will be modified in this method. | [
"Adds",
"clear",
"method"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L5715-L5757 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectBuilder.php | PHP5ObjectBuilder.addClearAllReferences | protected function addClearAllReferences(&$script)
{
$table = $this->getTable();
$script .= "
/**
* Resets all references to other model objects or collections of model objects.
*
* This method is a user-space workaround for PHP's inability to garbage collect
* objects with c... | php | protected function addClearAllReferences(&$script)
{
$table = $this->getTable();
$script .= "
/**
* Resets all references to other model objects or collections of model objects.
*
* This method is a user-space workaround for PHP's inability to garbage collect
* objects with c... | [
"protected",
"function",
"addClearAllReferences",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"script",
".=",
"\"\n /**\n * Resets all references to other model objects or collections of model objects.\n ... | Adds clearAllReferencers() method which resets all the collections of referencing
fk objects.
@param string &$script The script will be modified in this method. | [
"Adds",
"clearAllReferencers",
"()",
"method",
"which",
"resets",
"all",
"the",
"collections",
"of",
"referencing",
"fk",
"objects",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectBuilder.php#L5766-L5846 |
propelorm/Propel | generator/lib/reverse/mysql/MysqlSchemaParser.php | MysqlSchemaParser.getColumnFromRow | public function getColumnFromRow($row, Table $table)
{
$name = $row['Field'];
$is_nullable = ($row['Null'] == 'YES');
$autoincrement = (strpos($row['Extra'], 'auto_increment') !== false);
$size = null;
$precision = null;
$scale = null;
$sqlType = false;
... | php | public function getColumnFromRow($row, Table $table)
{
$name = $row['Field'];
$is_nullable = ($row['Null'] == 'YES');
$autoincrement = (strpos($row['Extra'], 'auto_increment') !== false);
$size = null;
$precision = null;
$scale = null;
$sqlType = false;
... | [
"public",
"function",
"getColumnFromRow",
"(",
"$",
"row",
",",
"Table",
"$",
"table",
")",
"{",
"$",
"name",
"=",
"$",
"row",
"[",
"'Field'",
"]",
";",
"$",
"is_nullable",
"=",
"(",
"$",
"row",
"[",
"'Null'",
"]",
"==",
"'YES'",
")",
";",
"$",
"... | Factory method creating a Column object
based on a row from the 'show columns from ' MySQL query result.
@param array $row An associative array with the following keys:
Field, Type, Null, Key, Default, Extra.
@return Column | [
"Factory",
"method",
"creating",
"a",
"Column",
"object",
"based",
"on",
"a",
"row",
"from",
"the",
"show",
"columns",
"from",
"MySQL",
"query",
"result",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/reverse/mysql/MysqlSchemaParser.php#L173-L275 |
propelorm/Propel | generator/lib/reverse/mysql/MysqlSchemaParser.php | MysqlSchemaParser.addPrimaryKey | protected function addPrimaryKey(Table $table)
{
$stmt = $this->dbh->query("SHOW KEYS FROM `" . $table->getName() . "`");
// Loop through the returned results, grouping the same key_name together
// adding each column for that key.
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
... | php | protected function addPrimaryKey(Table $table)
{
$stmt = $this->dbh->query("SHOW KEYS FROM `" . $table->getName() . "`");
// Loop through the returned results, grouping the same key_name together
// adding each column for that key.
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
... | [
"protected",
"function",
"addPrimaryKey",
"(",
"Table",
"$",
"table",
")",
"{",
"$",
"stmt",
"=",
"$",
"this",
"->",
"dbh",
"->",
"query",
"(",
"\"SHOW KEYS FROM `\"",
".",
"$",
"table",
"->",
"getName",
"(",
")",
".",
"\"`\"",
")",
";",
"// Loop through... | Loads the primary key for this table. | [
"Loads",
"the",
"primary",
"key",
"for",
"this",
"table",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/reverse/mysql/MysqlSchemaParser.php#L416-L430 |
propelorm/Propel | generator/lib/config/QuickGeneratorConfig.php | QuickGeneratorConfig.parsePseudoIniFile | protected function parsePseudoIniFile($filepath)
{
$properties = array();
if (($lines = @file($filepath)) === false) {
throw new Exception("Unable to parse contents of $filepath");
}
foreach ($lines as $line) {
$line = trim($line);
if ($line == "" ... | php | protected function parsePseudoIniFile($filepath)
{
$properties = array();
if (($lines = @file($filepath)) === false) {
throw new Exception("Unable to parse contents of $filepath");
}
foreach ($lines as $line) {
$line = trim($line);
if ($line == "" ... | [
"protected",
"function",
"parsePseudoIniFile",
"(",
"$",
"filepath",
")",
"{",
"$",
"properties",
"=",
"array",
"(",
")",
";",
"if",
"(",
"(",
"$",
"lines",
"=",
"@",
"file",
"(",
"$",
"filepath",
")",
")",
"===",
"false",
")",
"{",
"throw",
"new",
... | Why would Phing use ini while it so fun to invent a new format? (sic)
parse_ini_file() doesn't work for Phing property files | [
"Why",
"would",
"Phing",
"use",
"ini",
"while",
"it",
"so",
"fun",
"to",
"invent",
"a",
"new",
"format?",
"(",
"sic",
")",
"parse_ini_file",
"()",
"doesn",
"t",
"work",
"for",
"Phing",
"property",
"files"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/config/QuickGeneratorConfig.php#L57-L80 |
propelorm/Propel | generator/lib/config/QuickGeneratorConfig.php | QuickGeneratorConfig.getConfiguredBuilder | public function getConfiguredBuilder(Table $table, $type)
{
$class = $this->builders[$type];
require_once dirname(__FILE__) . '/../builder/om/' . $class . '.php';
$builder = new $class($table);
$builder->setGeneratorConfig($this);
return $builder;
} | php | public function getConfiguredBuilder(Table $table, $type)
{
$class = $this->builders[$type];
require_once dirname(__FILE__) . '/../builder/om/' . $class . '.php';
$builder = new $class($table);
$builder->setGeneratorConfig($this);
return $builder;
} | [
"public",
"function",
"getConfiguredBuilder",
"(",
"Table",
"$",
"table",
",",
"$",
"type",
")",
"{",
"$",
"class",
"=",
"$",
"this",
"->",
"builders",
"[",
"$",
"type",
"]",
";",
"require_once",
"dirname",
"(",
"__FILE__",
")",
".",
"'/../builder/om/'",
... | Gets a configured data model builder class for specified table and based on type.
@param Table $table
@param string $type The type of builder ('ddl', 'sql', etc.)
@return DataModelBuilder | [
"Gets",
"a",
"configured",
"data",
"model",
"builder",
"class",
"for",
"specified",
"table",
"and",
"based",
"on",
"type",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/config/QuickGeneratorConfig.php#L90-L98 |
propelorm/Propel | generator/lib/config/QuickGeneratorConfig.php | QuickGeneratorConfig.getConfiguredPlatform | public function getConfiguredPlatform(PDO $con = null, $database = null)
{
if (null === $this->configuredPlatform) {
return new SqlitePlatform($con);
}
$this->configuredPlatform->setConnection($con);
return $this->configuredPlatform;
} | php | public function getConfiguredPlatform(PDO $con = null, $database = null)
{
if (null === $this->configuredPlatform) {
return new SqlitePlatform($con);
}
$this->configuredPlatform->setConnection($con);
return $this->configuredPlatform;
} | [
"public",
"function",
"getConfiguredPlatform",
"(",
"PDO",
"$",
"con",
"=",
"null",
",",
"$",
"database",
"=",
"null",
")",
"{",
"if",
"(",
"null",
"===",
"$",
"this",
"->",
"configuredPlatform",
")",
"{",
"return",
"new",
"SqlitePlatform",
"(",
"$",
"co... | {@inheritdoc} | [
"{"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/config/QuickGeneratorConfig.php#L164-L173 |
propelorm/Propel | generator/lib/model/diff/PropelDatabaseComparator.php | PropelDatabaseComparator.computeDiff | public static function computeDiff(Database $fromDatabase, Database $toDatabase, $caseInsensitive = false)
{
$dc = new self();
$dc->setFromDatabase($fromDatabase);
$dc->setToDatabase($toDatabase);
$differences = 0;
$differences += $dc->compareTables($caseInsensitive);
... | php | public static function computeDiff(Database $fromDatabase, Database $toDatabase, $caseInsensitive = false)
{
$dc = new self();
$dc->setFromDatabase($fromDatabase);
$dc->setToDatabase($toDatabase);
$differences = 0;
$differences += $dc->compareTables($caseInsensitive);
... | [
"public",
"static",
"function",
"computeDiff",
"(",
"Database",
"$",
"fromDatabase",
",",
"Database",
"$",
"toDatabase",
",",
"$",
"caseInsensitive",
"=",
"false",
")",
"{",
"$",
"dc",
"=",
"new",
"self",
"(",
")",
";",
"$",
"dc",
"->",
"setFromDatabase",
... | Compute and return the difference between two database objects
@param Database $fromDatabase
@param Database $toDatabase
@param boolean $caseInsensitive Whether the comparison is case insensitive.
False by default.
@return PropelDatabaseDiff|boolean return false if the two databases are similar | [
"Compute",
"and",
"return",
"the",
"difference",
"between",
"two",
"database",
"objects"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/model/diff/PropelDatabaseComparator.php#L88-L97 |
propelorm/Propel | generator/lib/util/PropelQuickBuilder.php | PropelQuickBuilder.getPlatform | public function getPlatform()
{
if (null === $this->platform) {
require_once dirname(__FILE__) . '/../platform/SqlitePlatform.php';
$this->platform = new SqlitePlatform();
}
return $this->platform;
} | php | public function getPlatform()
{
if (null === $this->platform) {
require_once dirname(__FILE__) . '/../platform/SqlitePlatform.php';
$this->platform = new SqlitePlatform();
}
return $this->platform;
} | [
"public",
"function",
"getPlatform",
"(",
")",
"{",
"if",
"(",
"null",
"===",
"$",
"this",
"->",
"platform",
")",
"{",
"require_once",
"dirname",
"(",
"__FILE__",
")",
".",
"'/../platform/SqlitePlatform.php'",
";",
"$",
"this",
"->",
"platform",
"=",
"new",
... | Getter for the platform property
@return PropelPlatformInterface | [
"Getter",
"for",
"the",
"platform",
"property"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/util/PropelQuickBuilder.php#L45-L53 |
propelorm/Propel | generator/lib/util/PropelQuickBuilder.php | PropelQuickBuilder.getConfig | public function getConfig()
{
if (null === $this->config) {
require_once dirname(__FILE__) . '/../config/QuickGeneratorConfig.php';
$this->config = new QuickGeneratorConfig($this->getPlatform());
}
return $this->config;
} | php | public function getConfig()
{
if (null === $this->config) {
require_once dirname(__FILE__) . '/../config/QuickGeneratorConfig.php';
$this->config = new QuickGeneratorConfig($this->getPlatform());
}
return $this->config;
} | [
"public",
"function",
"getConfig",
"(",
")",
"{",
"if",
"(",
"null",
"===",
"$",
"this",
"->",
"config",
")",
"{",
"require_once",
"dirname",
"(",
"__FILE__",
")",
".",
"'/../config/QuickGeneratorConfig.php'",
";",
"$",
"this",
"->",
"config",
"=",
"new",
... | Getter for the config property
@return GeneratorConfigInterface | [
"Getter",
"for",
"the",
"config",
"property"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/util/PropelQuickBuilder.php#L70-L78 |
propelorm/Propel | generator/lib/model/Behavior.php | Behavior.addParameter | public function addParameter($attribute)
{
$attribute = array_change_key_case($attribute, CASE_LOWER);
$this->parameters[$attribute['name']] = $attribute['value'];
} | php | public function addParameter($attribute)
{
$attribute = array_change_key_case($attribute, CASE_LOWER);
$this->parameters[$attribute['name']] = $attribute['value'];
} | [
"public",
"function",
"addParameter",
"(",
"$",
"attribute",
")",
"{",
"$",
"attribute",
"=",
"array_change_key_case",
"(",
"$",
"attribute",
",",
"CASE_LOWER",
")",
";",
"$",
"this",
"->",
"parameters",
"[",
"$",
"attribute",
"[",
"'name'",
"]",
"]",
"=",... | Add a parameter
Expects an associative array looking like array('name' => 'foo', 'value' => bar)
@param array $attribute | [
"Add",
"a",
"parameter",
"Expects",
"an",
"associative",
"array",
"looking",
"like",
"array",
"(",
"name",
"=",
">",
"foo",
"value",
"=",
">",
"bar",
")"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/model/Behavior.php#L99-L103 |
propelorm/Propel | generator/lib/model/Behavior.php | Behavior.getDirname | protected function getDirname()
{
if (null === $this->dirname) {
$r = new ReflectionObject($this);
$this->dirname = dirname($r->getFileName());
}
return $this->dirname;
} | php | protected function getDirname()
{
if (null === $this->dirname) {
$r = new ReflectionObject($this);
$this->dirname = dirname($r->getFileName());
}
return $this->dirname;
} | [
"protected",
"function",
"getDirname",
"(",
")",
"{",
"if",
"(",
"null",
"===",
"$",
"this",
"->",
"dirname",
")",
"{",
"$",
"r",
"=",
"new",
"ReflectionObject",
"(",
"$",
"this",
")",
";",
"$",
"this",
"->",
"dirname",
"=",
"dirname",
"(",
"$",
"r... | Returns the current dirname of this behavior (also works for descendants)
@return string The absolute directory name | [
"Returns",
"the",
"current",
"dirname",
"of",
"this",
"behavior",
"(",
"also",
"works",
"for",
"descendants",
")"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/model/Behavior.php#L229-L237 |
propelorm/Propel | generator/lib/util/PropelSqlManager.php | PropelSqlManager.buildSql | public function buildSql()
{
$sqlDbMapContent = "# Sqlfile -> Database map\n";
foreach ($this->getDatabases() as $datasource => $database) {
$platform = $database->getPlatform();
$filename = $database->getName() . '.sql';
if ($this->getGeneratorConfig()->getBuild... | php | public function buildSql()
{
$sqlDbMapContent = "# Sqlfile -> Database map\n";
foreach ($this->getDatabases() as $datasource => $database) {
$platform = $database->getPlatform();
$filename = $database->getName() . '.sql';
if ($this->getGeneratorConfig()->getBuild... | [
"public",
"function",
"buildSql",
"(",
")",
"{",
"$",
"sqlDbMapContent",
"=",
"\"# Sqlfile -> Database map\\n\"",
";",
"foreach",
"(",
"$",
"this",
"->",
"getDatabases",
"(",
")",
"as",
"$",
"datasource",
"=>",
"$",
"database",
")",
"{",
"$",
"platform",
"="... | Build SQL files. | [
"Build",
"SQL",
"files",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/util/PropelSqlManager.php#L165-L189 |
propelorm/Propel | generator/lib/util/PropelSqlManager.php | PropelSqlManager.insertSql | public function insertSql($datasource = null)
{
$statementsToInsert = array();
foreach ($this->getProperties($this->getSqlDbMapFilename()) as $sqlFile => $database) {
if (null !== $datasource && $database !== $datasource) {
// skip
continue;
}
... | php | public function insertSql($datasource = null)
{
$statementsToInsert = array();
foreach ($this->getProperties($this->getSqlDbMapFilename()) as $sqlFile => $database) {
if (null !== $datasource && $database !== $datasource) {
// skip
continue;
}
... | [
"public",
"function",
"insertSql",
"(",
"$",
"datasource",
"=",
"null",
")",
"{",
"$",
"statementsToInsert",
"=",
"array",
"(",
")",
";",
"foreach",
"(",
"$",
"this",
"->",
"getProperties",
"(",
"$",
"this",
"->",
"getSqlDbMapFilename",
"(",
")",
")",
"a... | @param string $datasource A datasource name.
@return bool
@throws PDOException | [
"@param",
"string",
"$datasource",
"A",
"datasource",
"name",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/util/PropelSqlManager.php#L198-L243 |
propelorm/Propel | generator/lib/util/PropelSqlManager.php | PropelSqlManager.getPdoConnection | protected function getPdoConnection($datasource)
{
$buildConnection = $this->getConnection($datasource);
$dsn = str_replace("@DB@", $datasource, $buildConnection['dsn']);
// Set user + password to null if they are empty strings or missing
$username = isset($buildConnection['user']) ... | php | protected function getPdoConnection($datasource)
{
$buildConnection = $this->getConnection($datasource);
$dsn = str_replace("@DB@", $datasource, $buildConnection['dsn']);
// Set user + password to null if they are empty strings or missing
$username = isset($buildConnection['user']) ... | [
"protected",
"function",
"getPdoConnection",
"(",
"$",
"datasource",
")",
"{",
"$",
"buildConnection",
"=",
"$",
"this",
"->",
"getConnection",
"(",
"$",
"datasource",
")",
";",
"$",
"dsn",
"=",
"str_replace",
"(",
"\"@DB@\"",
",",
"$",
"datasource",
",",
... | Gets a PDO connection for a given datasource.
@return PDO | [
"Gets",
"a",
"PDO",
"connection",
"for",
"a",
"given",
"datasource",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/util/PropelSqlManager.php#L250-L263 |
propelorm/Propel | generator/lib/util/PropelSqlManager.php | PropelSqlManager.getProperties | protected function getProperties($file)
{
$properties = array();
if (false === $lines = @file($file)) {
throw new Exception(sprintf('Unable to parse contents of "%s".', $file));
}
foreach ($lines as $line) {
$line = trim($line);
if ('' == $line ... | php | protected function getProperties($file)
{
$properties = array();
if (false === $lines = @file($file)) {
throw new Exception(sprintf('Unable to parse contents of "%s".', $file));
}
foreach ($lines as $line) {
$line = trim($line);
if ('' == $line ... | [
"protected",
"function",
"getProperties",
"(",
"$",
"file",
")",
"{",
"$",
"properties",
"=",
"array",
"(",
")",
";",
"if",
"(",
"false",
"===",
"$",
"lines",
"=",
"@",
"file",
"(",
"$",
"file",
")",
")",
"{",
"throw",
"new",
"Exception",
"(",
"spr... | Returns an array of properties as key/value pairs from an input file.
@param string $file A file properties.
@return array An array of properties as key/value pairs.
@throws Exception | [
"Returns",
"an",
"array",
"of",
"properties",
"as",
"key",
"/",
"value",
"pairs",
"from",
"an",
"input",
"file",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/util/PropelSqlManager.php#L273-L293 |
propelorm/Propel | generator/lib/model/Validator.php | Validator.setupObject | protected function setupObject()
{
$this->column = $this->getTable()->getColumn($this->getAttribute("column"));
$this->translate = $this->getAttribute("translate", $this->getTable()->getDatabase()->getDefaultTranslateMethod());;
} | php | protected function setupObject()
{
$this->column = $this->getTable()->getColumn($this->getAttribute("column"));
$this->translate = $this->getAttribute("translate", $this->getTable()->getDatabase()->getDefaultTranslateMethod());;
} | [
"protected",
"function",
"setupObject",
"(",
")",
"{",
"$",
"this",
"->",
"column",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
"->",
"getColumn",
"(",
"$",
"this",
"->",
"getAttribute",
"(",
"\"column\"",
")",
")",
";",
"$",
"this",
"->",
"translate... | Sets up the Validator object based on the attributes that were passed to loadFromXML().
@see parent::loadFromXML() | [
"Sets",
"up",
"the",
"Validator",
"object",
"based",
"on",
"the",
"attributes",
"that",
"were",
"passed",
"to",
"loadFromXML",
"()",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/model/Validator.php#L62-L66 |
propelorm/Propel | generator/lib/model/Validator.php | Validator.addRule | public function addRule($data)
{
if ($data instanceof Rule) {
$rule = $data; // alias
$rule->setValidator($this);
$this->ruleList[] = $rule;
return $rule;
} else {
$rule = new Rule();
$rule->setValidator($this);
$ru... | php | public function addRule($data)
{
if ($data instanceof Rule) {
$rule = $data; // alias
$rule->setValidator($this);
$this->ruleList[] = $rule;
return $rule;
} else {
$rule = new Rule();
$rule->setValidator($this);
$ru... | [
"public",
"function",
"addRule",
"(",
"$",
"data",
")",
"{",
"if",
"(",
"$",
"data",
"instanceof",
"Rule",
")",
"{",
"$",
"rule",
"=",
"$",
"data",
";",
"// alias",
"$",
"rule",
"->",
"setValidator",
"(",
"$",
"this",
")",
";",
"$",
"this",
"->",
... | Add a Rule to this validator.
Supports two signatures:
- addRule(Rule $rule)
- addRule(array $attribs)
@param mixed $data Rule object or XML attribs (array) from <rule/> element.
@return Rule The added Rule. | [
"Add",
"a",
"Rule",
"to",
"this",
"validator",
".",
"Supports",
"two",
"signatures",
":",
"-",
"addRule",
"(",
"Rule",
"$rule",
")",
"-",
"addRule",
"(",
"array",
"$attribs",
")"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/model/Validator.php#L78-L93 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectNoCollectionBuilder.php | PHP5ObjectNoCollectionBuilder.addBuildPkeyCriteriaBody | protected function addBuildPkeyCriteriaBody(&$script)
{
$script .= "
\$criteria = new Criteria(" . $this->getPeerClassname() . "::DATABASE_NAME);";
foreach ($this->getTable()->getColumns() as $col) {
$clo = strtolower($col->getName());
if ($col->isPrimaryKey()) {
... | php | protected function addBuildPkeyCriteriaBody(&$script)
{
$script .= "
\$criteria = new Criteria(" . $this->getPeerClassname() . "::DATABASE_NAME);";
foreach ($this->getTable()->getColumns() as $col) {
$clo = strtolower($col->getName());
if ($col->isPrimaryKey()) {
... | [
"protected",
"function",
"addBuildPkeyCriteriaBody",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"script",
".=",
"\"\n \\$criteria = new Criteria(\"",
".",
"$",
"this",
"->",
"getPeerClassname",
"(",
")",
".",
"\"::DATABASE_NAME);\"",
";",
"foreach",
"(",
"$",
... | Adds the function body for the buildPkeyCriteria method
@param string &$script The script will be modified in this method.
@see addBuildPkeyCriteria() | [
"Adds",
"the",
"function",
"body",
"for",
"the",
"buildPkeyCriteria",
"method"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectNoCollectionBuilder.php#L215-L226 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectNoCollectionBuilder.php | PHP5ObjectNoCollectionBuilder.addDeleteBody | protected function addDeleteBody(&$script)
{
$script .= "
if (\$this->isDeleted()) {
throw new PropelException(\"This object has already been deleted.\");
}
if (\$con === null) {
\$con = Propel::getConnection(" . $this->getPeerClassname() . "::DATABASE_NAME, ... | php | protected function addDeleteBody(&$script)
{
$script .= "
if (\$this->isDeleted()) {
throw new PropelException(\"This object has already been deleted.\");
}
if (\$con === null) {
\$con = Propel::getConnection(" . $this->getPeerClassname() . "::DATABASE_NAME, ... | [
"protected",
"function",
"addDeleteBody",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"script",
".=",
"\"\n if (\\$this->isDeleted()) {\n throw new PropelException(\\\"This object has already been deleted.\\\");\n }\n\n if (\\$con === null) {\n \\$con =... | Adds the function body for the delete function
@param string &$script The script will be modified in this method.
@see addDelete() | [
"Adds",
"the",
"function",
"body",
"for",
"the",
"delete",
"function"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectNoCollectionBuilder.php#L330-L377 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectNoCollectionBuilder.php | PHP5ObjectNoCollectionBuilder.addReload | protected function addReload(&$script)
{
$table = $this->getTable();
$script .= "
/**
* 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.
... | php | protected function addReload(&$script)
{
$table = $this->getTable();
$script .= "
/**
* 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.
... | [
"protected",
"function",
"addReload",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"script",
".=",
"\"\n /**\n * Reloads this object from datastore based on primary key and (optionally) resets all associat... | Adds a reload() method to re-fetch the data for this object from the database.
@param string &$script The script will be modified in this method. | [
"Adds",
"a",
"reload",
"()",
"method",
"to",
"re",
"-",
"fetch",
"the",
"data",
"for",
"this",
"object",
"from",
"the",
"database",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectNoCollectionBuilder.php#L384-L463 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectNoCollectionBuilder.php | PHP5ObjectNoCollectionBuilder.addFKAccessor | protected function addFKAccessor(&$script, ForeignKey $fk)
{
$table = $this->getTable();
$varName = $this->getFKVarName($fk);
$fkPeerBuilder = $this->getNewPeerBuilder($this->getForeignTable($fk));
$fkObjectBuilder = $this->getNewObjectBuilder($this->getForeignTable($fk))->getStubO... | php | protected function addFKAccessor(&$script, ForeignKey $fk)
{
$table = $this->getTable();
$varName = $this->getFKVarName($fk);
$fkPeerBuilder = $this->getNewPeerBuilder($this->getForeignTable($fk));
$fkObjectBuilder = $this->getNewObjectBuilder($this->getForeignTable($fk))->getStubO... | [
"protected",
"function",
"addFKAccessor",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"fk",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"varName",
"=",
"$",
"this",
"->",
"getFKVarName",
"(",
"$",
"fk",
")",
... | Adds the accessor (getter) method for getting an fkey related object.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"accessor",
"(",
"getter",
")",
"method",
"for",
"getting",
"an",
"fkey",
"related",
"object",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectNoCollectionBuilder.php#L483-L584 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectNoCollectionBuilder.php | PHP5ObjectNoCollectionBuilder.addRefFKGetJoinMethods | protected function addRefFKGetJoinMethods(&$script, ForeignKey $refFK)
{
$table = $this->getTable();
$tblFK = $refFK->getTable();
$join_behavior = $this->getGeneratorConfig()->getBuildProperty('useLeftJoinsInDoJoinMethods') ? 'Criteria::LEFT_JOIN' : 'Criteria::INNER_JOIN';
$peerClas... | php | protected function addRefFKGetJoinMethods(&$script, ForeignKey $refFK)
{
$table = $this->getTable();
$tblFK = $refFK->getTable();
$join_behavior = $this->getGeneratorConfig()->getBuildProperty('useLeftJoinsInDoJoinMethods') ? 'Criteria::LEFT_JOIN' : 'Criteria::INNER_JOIN';
$peerClas... | [
"protected",
"function",
"addRefFKGetJoinMethods",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"refFK",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"tblFK",
"=",
"$",
"refFK",
"->",
"getTable",
"(",
")",
";",
... | Adds the method that fetches fkey-related (referencing) objects but also joins in data from another table.
@param string &$script The script will be modified in this method.
@throws EngineException | [
"Adds",
"the",
"method",
"that",
"fetches",
"fkey",
"-",
"related",
"(",
"referencing",
")",
"objects",
"but",
"also",
"joins",
"in",
"data",
"from",
"another",
"table",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectNoCollectionBuilder.php#L594-L698 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectNoCollectionBuilder.php | PHP5ObjectNoCollectionBuilder.addRefFKInit | protected function addRefFKInit(&$script, ForeignKey $refFK)
{
$relCol = $this->getRefFKPhpNameAffix($refFK, $plural = true);
$collName = $this->getRefFKCollVarName($refFK);
$script .= "
/**
* Initializes the $collName collection (array) .
*
* By default this just sets th... | php | protected function addRefFKInit(&$script, ForeignKey $refFK)
{
$relCol = $this->getRefFKPhpNameAffix($refFK, $plural = true);
$collName = $this->getRefFKCollVarName($refFK);
$script .= "
/**
* Initializes the $collName collection (array) .
*
* By default this just sets th... | [
"protected",
"function",
"addRefFKInit",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"refFK",
")",
"{",
"$",
"relCol",
"=",
"$",
"this",
"->",
"getRefFKPhpNameAffix",
"(",
"$",
"refFK",
",",
"$",
"plural",
"=",
"true",
")",
";",
"$",
"collName",
"... | Adds the method that initializes the referrer fkey collection.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"method",
"that",
"initializes",
"the",
"referrer",
"fkey",
"collection",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectNoCollectionBuilder.php#L705-L725 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectNoCollectionBuilder.php | PHP5ObjectNoCollectionBuilder.addRefFKAdd | protected function addRefFKAdd(&$script, ForeignKey $refFK)
{
$tblFK = $refFK->getTable();
$joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable());
$className = $joinedTableObjectBuilder->getObjectClassname();
$collName = $this->getRefFKCollVarName($refFK);
... | php | protected function addRefFKAdd(&$script, ForeignKey $refFK)
{
$tblFK = $refFK->getTable();
$joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable());
$className = $joinedTableObjectBuilder->getObjectClassname();
$collName = $this->getRefFKCollVarName($refFK);
... | [
"protected",
"function",
"addRefFKAdd",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"refFK",
")",
"{",
"$",
"tblFK",
"=",
"$",
"refFK",
"->",
"getTable",
"(",
")",
";",
"$",
"joinedTableObjectBuilder",
"=",
"$",
"this",
"->",
"getNewObjectBuilder",
"(... | Adds the method that adds an object into the referrer fkey collection.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"method",
"that",
"adds",
"an",
"object",
"into",
"the",
"referrer",
"fkey",
"collection",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectNoCollectionBuilder.php#L732-L761 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectNoCollectionBuilder.php | PHP5ObjectNoCollectionBuilder.addRefFKCount | protected function addRefFKCount(&$script, ForeignKey $refFK)
{
$table = $this->getTable();
$tblFK = $refFK->getTable();
$peerClassname = $this->getStubPeerBuilder()->getClassname();
$fkPeerBuilder = $this->getNewPeerBuilder($refFK->getTable());
$relCol = $this->getRefFKPhp... | php | protected function addRefFKCount(&$script, ForeignKey $refFK)
{
$table = $this->getTable();
$tblFK = $refFK->getTable();
$peerClassname = $this->getStubPeerBuilder()->getClassname();
$fkPeerBuilder = $this->getNewPeerBuilder($refFK->getTable());
$relCol = $this->getRefFKPhp... | [
"protected",
"function",
"addRefFKCount",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"refFK",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"tblFK",
"=",
"$",
"refFK",
"->",
"getTable",
"(",
")",
";",
"$",
"p... | Adds the method that returns the size of the referrer fkey collection.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"method",
"that",
"returns",
"the",
"size",
"of",
"the",
"referrer",
"fkey",
"collection",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectNoCollectionBuilder.php#L768-L860 |
propelorm/Propel | generator/lib/builder/om/PHP5ObjectNoCollectionBuilder.php | PHP5ObjectNoCollectionBuilder.addPKRefFKGet | protected function addPKRefFKGet(&$script, ForeignKey $refFK)
{
$table = $this->getTable();
$tblFK = $refFK->getTable();
$joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable());
$joinedTablePeerBuilder = $this->getNewObjectBuilder($refFK->getTable());
$cla... | php | protected function addPKRefFKGet(&$script, ForeignKey $refFK)
{
$table = $this->getTable();
$tblFK = $refFK->getTable();
$joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable());
$joinedTablePeerBuilder = $this->getNewObjectBuilder($refFK->getTable());
$cla... | [
"protected",
"function",
"addPKRefFKGet",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"refFK",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"tblFK",
"=",
"$",
"refFK",
"->",
"getTable",
"(",
")",
";",
"$",
"j... | Adds the method that gets a one-to-one related referrer fkey.
This is for one-to-one relationship special case.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"method",
"that",
"gets",
"a",
"one",
"-",
"to",
"-",
"one",
"related",
"referrer",
"fkey",
".",
"This",
"is",
"for",
"one",
"-",
"to",
"-",
"one",
"relationship",
"special",
"case",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/PHP5ObjectNoCollectionBuilder.php#L965-L1015 |
propelorm/Propel | runtime/lib/query/Criterion.php | Criterion.init | public function init(Criteria $criteria)
{
// init $this->db
try {
$db = Propel::getDB($criteria->getDbName());
$this->setDB($db);
} catch (Exception $e) {
// we are only doing this to allow easier debugging, so
// no need to throw up the excep... | php | public function init(Criteria $criteria)
{
// init $this->db
try {
$db = Propel::getDB($criteria->getDbName());
$this->setDB($db);
} catch (Exception $e) {
// we are only doing this to allow easier debugging, so
// no need to throw up the excep... | [
"public",
"function",
"init",
"(",
"Criteria",
"$",
"criteria",
")",
"{",
"// init $this->db",
"try",
"{",
"$",
"db",
"=",
"Propel",
"::",
"getDB",
"(",
"$",
"criteria",
"->",
"getDbName",
"(",
")",
")",
";",
"$",
"this",
"->",
"setDB",
"(",
"$",
"db... | Init some properties with the help of outer class
@param Criteria $criteria The outer class | [
"Init",
"some",
"properties",
"with",
"the",
"help",
"of",
"outer",
"class"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/runtime/lib/query/Criterion.php#L102-L117 |
propelorm/Propel | runtime/lib/query/Criterion.php | Criterion.setDB | public function setDB(DBAdapter $v)
{
$this->db = $v;
foreach ($this->clauses as $clause) {
$clause->setDB($v);
}
} | php | public function setDB(DBAdapter $v)
{
$this->db = $v;
foreach ($this->clauses as $clause) {
$clause->setDB($v);
}
} | [
"public",
"function",
"setDB",
"(",
"DBAdapter",
"$",
"v",
")",
"{",
"$",
"this",
"->",
"db",
"=",
"$",
"v",
";",
"foreach",
"(",
"$",
"this",
"->",
"clauses",
"as",
"$",
"clause",
")",
"{",
"$",
"clause",
"->",
"setDB",
"(",
"$",
"v",
")",
";"... | Set the value of db.
The DBAdapter might be used to get db specific variations of sql.
@param DBAdapter $v Value to assign to db.
@return void | [
"Set",
"the",
"value",
"of",
"db",
".",
"The",
"DBAdapter",
"might",
"be",
"used",
"to",
"get",
"db",
"specific",
"variations",
"of",
"sql",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/runtime/lib/query/Criterion.php#L191-L197 |
propelorm/Propel | runtime/lib/query/Criterion.php | Criterion.addAnd | public function addAnd(Criterion $criterion)
{
$this->clauses[] = $criterion;
$this->conjunctions[] = self::UND;
return $this;
} | php | public function addAnd(Criterion $criterion)
{
$this->clauses[] = $criterion;
$this->conjunctions[] = self::UND;
return $this;
} | [
"public",
"function",
"addAnd",
"(",
"Criterion",
"$",
"criterion",
")",
"{",
"$",
"this",
"->",
"clauses",
"[",
"]",
"=",
"$",
"criterion",
";",
"$",
"this",
"->",
"conjunctions",
"[",
"]",
"=",
"self",
"::",
"UND",
";",
"return",
"$",
"this",
";",
... | Append an AND Criterion onto this Criterion's list. | [
"Append",
"an",
"AND",
"Criterion",
"onto",
"this",
"Criterion",
"s",
"list",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/runtime/lib/query/Criterion.php#L246-L252 |
propelorm/Propel | runtime/lib/query/Criterion.php | Criterion.addOr | public function addOr(Criterion $criterion)
{
$this->clauses[] = $criterion;
$this->conjunctions[] = self::ODER;
return $this;
} | php | public function addOr(Criterion $criterion)
{
$this->clauses[] = $criterion;
$this->conjunctions[] = self::ODER;
return $this;
} | [
"public",
"function",
"addOr",
"(",
"Criterion",
"$",
"criterion",
")",
"{",
"$",
"this",
"->",
"clauses",
"[",
"]",
"=",
"$",
"criterion",
";",
"$",
"this",
"->",
"conjunctions",
"[",
"]",
"=",
"self",
"::",
"ODER",
";",
"return",
"$",
"this",
";",
... | Append an OR Criterion onto this Criterion's list.
@param Criterion $criterion
@return Criterion | [
"Append",
"an",
"OR",
"Criterion",
"onto",
"this",
"Criterion",
"s",
"list",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/runtime/lib/query/Criterion.php#L261-L267 |
propelorm/Propel | runtime/lib/query/Criterion.php | Criterion.appendPsTo | public function appendPsTo(&$sb, array &$params)
{
$sb .= str_repeat('(', count($this->clauses));
$this->dispatchPsHandling($sb, $params);
foreach ($this->clauses as $key => $clause) {
$sb .= $this->conjunctions[$key];
$clause->appendPsTo($sb, $params);
... | php | public function appendPsTo(&$sb, array &$params)
{
$sb .= str_repeat('(', count($this->clauses));
$this->dispatchPsHandling($sb, $params);
foreach ($this->clauses as $key => $clause) {
$sb .= $this->conjunctions[$key];
$clause->appendPsTo($sb, $params);
... | [
"public",
"function",
"appendPsTo",
"(",
"&",
"$",
"sb",
",",
"array",
"&",
"$",
"params",
")",
"{",
"$",
"sb",
".=",
"str_repeat",
"(",
"'('",
",",
"count",
"(",
"$",
"this",
"->",
"clauses",
")",
")",
";",
"$",
"this",
"->",
"dispatchPsHandling",
... | Appends a Prepared Statement representation of the Criterion
onto the buffer.
@param string &$sb The string that will receive the Prepared Statement
@param array $params A list to which Prepared Statement parameters will be appended
@return void
@throws PropelException - if the expression builder cannot figure ou... | [
"Appends",
"a",
"Prepared",
"Statement",
"representation",
"of",
"the",
"Criterion",
"onto",
"the",
"buffer",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/runtime/lib/query/Criterion.php#L280-L291 |
propelorm/Propel | runtime/lib/query/Criterion.php | Criterion.dispatchPsHandling | protected function dispatchPsHandling(&$sb, array &$params)
{
switch ($this->comparison) {
case Criteria::CUSTOM:
// custom expression with no parameter binding
$this->appendCustomToPs($sb, $params);
break;
case Criteria::RAW:
... | php | protected function dispatchPsHandling(&$sb, array &$params)
{
switch ($this->comparison) {
case Criteria::CUSTOM:
// custom expression with no parameter binding
$this->appendCustomToPs($sb, $params);
break;
case Criteria::RAW:
... | [
"protected",
"function",
"dispatchPsHandling",
"(",
"&",
"$",
"sb",
",",
"array",
"&",
"$",
"params",
")",
"{",
"switch",
"(",
"$",
"this",
"->",
"comparison",
")",
"{",
"case",
"Criteria",
"::",
"CUSTOM",
":",
"// custom expression with no parameter binding",
... | Figure out which Criterion method to use
to build the prepared statement and parameters using to the Criterion comparison
and call it to append the prepared statement and the parameters of the current clause
@param string &$sb The string that will receive the Prepared Statement
@param array $params A list to which... | [
"Figure",
"out",
"which",
"Criterion",
"method",
"to",
"use",
"to",
"build",
"the",
"prepared",
"statement",
"and",
"parameters",
"using",
"to",
"the",
"Criterion",
"comparison",
"and",
"call",
"it",
"to",
"append",
"the",
"prepared",
"statement",
"and",
"the"... | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/runtime/lib/query/Criterion.php#L301-L328 |
propelorm/Propel | runtime/lib/query/Criterion.php | Criterion.appendInToPs | protected function appendInToPs(&$sb, array &$params)
{
if ($this->value !== "") {
$bindParams = array();
$index = count($params); // to avoid counting the number of parameters for each element in the array
foreach ((array) $this->value as $value) {
$param... | php | protected function appendInToPs(&$sb, array &$params)
{
if ($this->value !== "") {
$bindParams = array();
$index = count($params); // to avoid counting the number of parameters for each element in the array
foreach ((array) $this->value as $value) {
$param... | [
"protected",
"function",
"appendInToPs",
"(",
"&",
"$",
"sb",
",",
"array",
"&",
"$",
"params",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"value",
"!==",
"\"\"",
")",
"{",
"$",
"bindParams",
"=",
"array",
"(",
")",
";",
"$",
"index",
"=",
"count",
... | Appends a Prepared Statement representation of the Criterion onto the buffer
For IN expressions, e.g. table.column IN (?, ?) or table.column NOT IN (?, ?)
@param string &$sb The string that will receive the Prepared Statement
@param array $params A list to which Prepared Statement parameters will be appended | [
"Appends",
"a",
"Prepared",
"Statement",
"representation",
"of",
"the",
"Criterion",
"onto",
"the",
"buffer",
"For",
"IN",
"expressions",
"e",
".",
"g",
".",
"table",
".",
"column",
"IN",
"(",
"?",
"?",
")",
"or",
"table",
".",
"column",
"NOT",
"IN",
"... | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/runtime/lib/query/Criterion.php#L369-L386 |
propelorm/Propel | runtime/lib/query/Criterion.php | Criterion.appendLikeToPs | protected function appendLikeToPs(&$sb, array &$params)
{
$field = ($this->table === null) ? $this->column : $this->table . '.' . $this->column;
$db = $this->getDb();
// If selection is case insensitive use ILIKE for PostgreSQL or SQL
// UPPER() function on column name for other data... | php | protected function appendLikeToPs(&$sb, array &$params)
{
$field = ($this->table === null) ? $this->column : $this->table . '.' . $this->column;
$db = $this->getDb();
// If selection is case insensitive use ILIKE for PostgreSQL or SQL
// UPPER() function on column name for other data... | [
"protected",
"function",
"appendLikeToPs",
"(",
"&",
"$",
"sb",
",",
"array",
"&",
"$",
"params",
")",
"{",
"$",
"field",
"=",
"(",
"$",
"this",
"->",
"table",
"===",
"null",
")",
"?",
"$",
"this",
"->",
"column",
":",
"$",
"this",
"->",
"table",
... | Appends a Prepared Statement representation of the Criterion onto the buffer
For LIKE expressions, e.g. table.column LIKE ? or table.column NOT LIKE ? (or ILIKE for Postgres)
@param string &$sb The string that will receive the Prepared Statement
@param array $params A list to which Prepared Statement parameters w... | [
"Appends",
"a",
"Prepared",
"Statement",
"representation",
"of",
"the",
"Criterion",
"onto",
"the",
"buffer",
"For",
"LIKE",
"expressions",
"e",
".",
"g",
".",
"table",
".",
"column",
"LIKE",
"?",
"or",
"table",
".",
"column",
"NOT",
"LIKE",
"?",
"(",
"o... | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/runtime/lib/query/Criterion.php#L395-L424 |
propelorm/Propel | runtime/lib/query/Criterion.php | Criterion.appendBasicToPs | protected function appendBasicToPs(&$sb, array &$params)
{
$field = ($this->table === null) ? $this->column : $this->table . '.' . $this->column;
// NULL VALUES need special treatment because the SQL syntax is different
// i.e. table.column IS NULL rather than table.column = null
if ... | php | protected function appendBasicToPs(&$sb, array &$params)
{
$field = ($this->table === null) ? $this->column : $this->table . '.' . $this->column;
// NULL VALUES need special treatment because the SQL syntax is different
// i.e. table.column IS NULL rather than table.column = null
if ... | [
"protected",
"function",
"appendBasicToPs",
"(",
"&",
"$",
"sb",
",",
"array",
"&",
"$",
"params",
")",
"{",
"$",
"field",
"=",
"(",
"$",
"this",
"->",
"table",
"===",
"null",
")",
"?",
"$",
"this",
"->",
"column",
":",
"$",
"this",
"->",
"table",
... | Appends a Prepared Statement representation of the Criterion onto the buffer
For traditional expressions, e.g. table.column = ? or table.column >= ? etc.
@param string &$sb The string that will receive the Prepared Statement
@param array $params A list to which Prepared Statement parameters will be appended
@thro... | [
"Appends",
"a",
"Prepared",
"Statement",
"representation",
"of",
"the",
"Criterion",
"onto",
"the",
"buffer",
"For",
"traditional",
"expressions",
"e",
".",
"g",
".",
"table",
".",
"column",
"=",
"?",
"or",
"table",
".",
"column",
">",
"=",
"?",
"etc",
"... | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/runtime/lib/query/Criterion.php#L435-L470 |
propelorm/Propel | runtime/lib/query/Criterion.php | Criterion.hashCode | public function hashCode()
{
$h = crc32(serialize($this->value)) ^ crc32($this->comparison);
if ($this->table !== null) {
$h ^= crc32($this->table);
}
if ($this->column !== null) {
$h ^= crc32($this->column);
}
foreach ($this->clauses as $cl... | php | public function hashCode()
{
$h = crc32(serialize($this->value)) ^ crc32($this->comparison);
if ($this->table !== null) {
$h ^= crc32($this->table);
}
if ($this->column !== null) {
$h ^= crc32($this->column);
}
foreach ($this->clauses as $cl... | [
"public",
"function",
"hashCode",
"(",
")",
"{",
"$",
"h",
"=",
"crc32",
"(",
"serialize",
"(",
"$",
"this",
"->",
"value",
")",
")",
"^",
"crc32",
"(",
"$",
"this",
"->",
"comparison",
")",
";",
"if",
"(",
"$",
"this",
"->",
"table",
"!==",
"nul... | Returns a hash code value for the object. | [
"Returns",
"a",
"hash",
"code",
"value",
"for",
"the",
"object",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/runtime/lib/query/Criterion.php#L520-L545 |
propelorm/Propel | generator/lib/builder/om/OMBuilder.php | OMBuilder.build | public function build()
{
$this->validateModel();
$script = '';
if ($this->isAddIncludes()) {
$this->addIncludes($script);
}
$this->addClassOpen($script);
$this->addClassBody($script);
$this->addClassClose($script);
if ($useStatements =... | php | public function build()
{
$this->validateModel();
$script = '';
if ($this->isAddIncludes()) {
$this->addIncludes($script);
}
$this->addClassOpen($script);
$this->addClassBody($script);
$this->addClassClose($script);
if ($useStatements =... | [
"public",
"function",
"build",
"(",
")",
"{",
"$",
"this",
"->",
"validateModel",
"(",
")",
";",
"$",
"script",
"=",
"''",
";",
"if",
"(",
"$",
"this",
"->",
"isAddIncludes",
"(",
")",
")",
"{",
"$",
"this",
"->",
"addIncludes",
"(",
"$",
"script",... | Builds the PHP source for current class and returns it as a string.
This is the main entry point and defines a basic structure that classes should follow.
In most cases this method will not need to be overridden by subclasses. This method
does assume that the output language is PHP code, so it will need to be overrid... | [
"Builds",
"the",
"PHP",
"source",
"for",
"current",
"class",
"and",
"returns",
"it",
"as",
"a",
"string",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/OMBuilder.php#L43-L70 |
propelorm/Propel | generator/lib/builder/om/OMBuilder.php | OMBuilder.getClasspath | public function getClasspath()
{
if ($this->getPackage()) {
$path = $this->getPackage() . '.' . $this->getClassname();
} else {
$path = $this->getClassname();
}
return $path;
} | php | public function getClasspath()
{
if ($this->getPackage()) {
$path = $this->getPackage() . '.' . $this->getClassname();
} else {
$path = $this->getClassname();
}
return $path;
} | [
"public",
"function",
"getClasspath",
"(",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"getPackage",
"(",
")",
")",
"{",
"$",
"path",
"=",
"$",
"this",
"->",
"getPackage",
"(",
")",
".",
"'.'",
".",
"$",
"this",
"->",
"getClassname",
"(",
")",
";",
"... | Gets the dot-path representation of current class being built.
@return string | [
"Gets",
"the",
"dot",
"-",
"path",
"representation",
"of",
"current",
"class",
"being",
"built",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/OMBuilder.php#L134-L143 |
propelorm/Propel | generator/lib/builder/om/OMBuilder.php | OMBuilder.getPackagePath | public function getPackagePath()
{
$pkg = $this->getPackage();
if (false !== strpos($pkg, '/')) {
return preg_replace('#\.(map|om)$#', '/\1', $pkg);
}
if ('.' === substr($pkg, 0, 1)) {
$pkg = substr($pkg, 1);
}
return strtr($pkg, '.', '/');
... | php | public function getPackagePath()
{
$pkg = $this->getPackage();
if (false !== strpos($pkg, '/')) {
return preg_replace('#\.(map|om)$#', '/\1', $pkg);
}
if ('.' === substr($pkg, 0, 1)) {
$pkg = substr($pkg, 1);
}
return strtr($pkg, '.', '/');
... | [
"public",
"function",
"getPackagePath",
"(",
")",
"{",
"$",
"pkg",
"=",
"$",
"this",
"->",
"getPackage",
"(",
")",
";",
"if",
"(",
"false",
"!==",
"strpos",
"(",
"$",
"pkg",
",",
"'/'",
")",
")",
"{",
"return",
"preg_replace",
"(",
"'#\\.(map|om)$#'",
... | Returns filesystem path for current package.
@return string | [
"Returns",
"filesystem",
"path",
"for",
"current",
"package",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/OMBuilder.php#L176-L189 |
propelorm/Propel | generator/lib/builder/om/OMBuilder.php | OMBuilder.getColumnConstant | public function getColumnConstant($col, $classname = null)
{
if ($col === null) {
$e = new Exception("No col specified.");
print $e;
throw $e;
}
if ($classname === null) {
return $this->getBuildProperty('classPrefix') . $col->getConstantName();... | php | public function getColumnConstant($col, $classname = null)
{
if ($col === null) {
$e = new Exception("No col specified.");
print $e;
throw $e;
}
if ($classname === null) {
return $this->getBuildProperty('classPrefix') . $col->getConstantName();... | [
"public",
"function",
"getColumnConstant",
"(",
"$",
"col",
",",
"$",
"classname",
"=",
"null",
")",
"{",
"if",
"(",
"$",
"col",
"===",
"null",
")",
"{",
"$",
"e",
"=",
"new",
"Exception",
"(",
"\"No col specified.\"",
")",
";",
"print",
"$",
"e",
";... | Get the column constant name (e.g. PeerName::COLUMN_NAME).
@param Column $col The column we need a name for.
@param string $classname The Peer classname to use.
@return string If $classname is provided, then will return $classname::COLUMN_NAME; if not, then the peername is looked up for current table to yield $... | [
"Get",
"the",
"column",
"constant",
"name",
"(",
"e",
".",
"g",
".",
"PeerName",
"::",
"COLUMN_NAME",
")",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/OMBuilder.php#L319-L337 |
propelorm/Propel | generator/lib/builder/om/OMBuilder.php | OMBuilder.getFKPhpNameAffix | public function getFKPhpNameAffix(ForeignKey $fk, $plural = false)
{
if ($fk->getPhpName()) {
if ($plural) {
return $this->getPluralizer()->getPluralForm($fk->getPhpName());
} else {
return $fk->getPhpName();
}
} else {
... | php | public function getFKPhpNameAffix(ForeignKey $fk, $plural = false)
{
if ($fk->getPhpName()) {
if ($plural) {
return $this->getPluralizer()->getPluralForm($fk->getPhpName());
} else {
return $fk->getPhpName();
}
} else {
... | [
"public",
"function",
"getFKPhpNameAffix",
"(",
"ForeignKey",
"$",
"fk",
",",
"$",
"plural",
"=",
"false",
")",
"{",
"if",
"(",
"$",
"fk",
"->",
"getPhpName",
"(",
")",
")",
"{",
"if",
"(",
"$",
"plural",
")",
"{",
"return",
"$",
"this",
"->",
"get... | Gets the PHP method name affix to be used for fkeys for the current table (not referrers to this table).
The difference between this method and the getRefFKPhpNameAffix() method is that in this method the
classname in the affix is the foreign table classname.
@param ForeignKey $fk The local FK that we need a name... | [
"Gets",
"the",
"PHP",
"method",
"name",
"affix",
"to",
"be",
"used",
"for",
"fkeys",
"for",
"the",
"current",
"table",
"(",
"not",
"referrers",
"to",
"this",
"table",
")",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/OMBuilder.php#L398-L414 |
propelorm/Propel | generator/lib/builder/om/OMBuilder.php | OMBuilder.getRelatedBySuffix | protected static function getRelatedBySuffix(ForeignKey $fk)
{
$relCol = '';
foreach ($fk->getLocalForeignMapping() as $localColumnName => $foreignColumnName) {
$localTable = $fk->getTable();
$localColumn = $localTable->getColumn($localColumnName);
if (!$localColu... | php | protected static function getRelatedBySuffix(ForeignKey $fk)
{
$relCol = '';
foreach ($fk->getLocalForeignMapping() as $localColumnName => $foreignColumnName) {
$localTable = $fk->getTable();
$localColumn = $localTable->getColumn($localColumnName);
if (!$localColu... | [
"protected",
"static",
"function",
"getRelatedBySuffix",
"(",
"ForeignKey",
"$",
"fk",
")",
"{",
"$",
"relCol",
"=",
"''",
";",
"foreach",
"(",
"$",
"fk",
"->",
"getLocalForeignMapping",
"(",
")",
"as",
"$",
"localColumnName",
"=>",
"$",
"foreignColumnName",
... | Gets the "RelatedBy*" suffix (if needed) that is attached to method and variable names.
The related by suffix is based on the local columns of the foreign key. If there is more than
one column in a table that points to the same foreign table, then a 'RelatedByLocalColName' suffix
will be appended.
@return string
@t... | [
"Gets",
"the",
"RelatedBy",
"*",
"suffix",
"(",
"if",
"needed",
")",
"that",
"is",
"attached",
"to",
"method",
"and",
"variable",
"names",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/OMBuilder.php#L427-L449 |
propelorm/Propel | generator/lib/builder/om/QueryBuilder.php | QueryBuilder.addClassOpen | protected function addClassOpen(&$script)
{
$table = $this->getTable();
$tableName = $table->getName();
$tableDesc = $table->getDescription();
$queryClass = $this->getStubQueryBuilder()->getClassname();
$modelClass = $this->getStubObjectBuilder()->getClassname();
$par... | php | protected function addClassOpen(&$script)
{
$table = $this->getTable();
$tableName = $table->getName();
$tableDesc = $table->getDescription();
$queryClass = $this->getStubQueryBuilder()->getClassname();
$modelClass = $this->getStubObjectBuilder()->getClassname();
$par... | [
"protected",
"function",
"addClassOpen",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"tableName",
"=",
"$",
"table",
"->",
"getName",
"(",
")",
";",
"$",
"tableDesc",
"=",
"$",
"table",
"... | Adds class phpdoc comment and opening of class.
@param string &$script The script will be modified in this method. | [
"Adds",
"class",
"phpdoc",
"comment",
"and",
"opening",
"of",
"class",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/QueryBuilder.php#L70-L175 |
propelorm/Propel | generator/lib/builder/om/QueryBuilder.php | QueryBuilder.addClassBody | protected function addClassBody(&$script)
{
// namespaces
$this->declareClasses('ModelCriteria', 'Criteria', 'ModelJoin', 'Exception');
$this->declareClassFromBuilder($this->getStubQueryBuilder());
$this->declareClassFromBuilder($this->getStubPeerBuilder());
// apply behavio... | php | protected function addClassBody(&$script)
{
// namespaces
$this->declareClasses('ModelCriteria', 'Criteria', 'ModelJoin', 'Exception');
$this->declareClassFromBuilder($this->getStubQueryBuilder());
$this->declareClassFromBuilder($this->getStubPeerBuilder());
// apply behavio... | [
"protected",
"function",
"addClassBody",
"(",
"&",
"$",
"script",
")",
"{",
"// namespaces",
"$",
"this",
"->",
"declareClasses",
"(",
"'ModelCriteria'",
",",
"'Criteria'",
",",
"'ModelJoin'",
",",
"'Exception'",
")",
";",
"$",
"this",
"->",
"declareClassFromBui... | Specifies the methods that are added as part of the stub object class.
By default there are no methods for the empty stub classes; override this method
if you want to change that behavior.
@see ObjectBuilder::addClassBody() | [
"Specifies",
"the",
"methods",
"that",
"are",
"added",
"as",
"part",
"of",
"the",
"stub",
"object",
"class",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/QueryBuilder.php#L185-L231 |
propelorm/Propel | generator/lib/builder/om/QueryBuilder.php | QueryBuilder.addConstructorBody | protected function addConstructorBody(&$script)
{
$table = $this->getTable();
$script .= "
if (null === \$dbName) {
\$dbName = '" . $table->getDatabase()->getName() . "';
}
if (null === \$modelName) {
\$modelName = '" . addslashes($this->getNewStubObje... | php | protected function addConstructorBody(&$script)
{
$table = $this->getTable();
$script .= "
if (null === \$dbName) {
\$dbName = '" . $table->getDatabase()->getName() . "';
}
if (null === \$modelName) {
\$modelName = '" . addslashes($this->getNewStubObje... | [
"protected",
"function",
"addConstructorBody",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"script",
".=",
"\"\n if (null === \\$dbName) {\n \\$dbName = '\"",
".",
"$",
"table",
"->",
... | Adds the function body for the constructor
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"function",
"body",
"for",
"the",
"constructor"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/QueryBuilder.php#L295-L306 |
propelorm/Propel | generator/lib/builder/om/QueryBuilder.php | QueryBuilder.addFactoryComment | protected function addFactoryComment(&$script)
{
$classname = $this->getNewStubQueryBuilder($this->getTable())->getClassname();
$script .= "
/**
* Returns a new " . $classname . " object.
*
* @param string \$modelAlias The alias of a model in the query
* @param $classna... | php | protected function addFactoryComment(&$script)
{
$classname = $this->getNewStubQueryBuilder($this->getTable())->getClassname();
$script .= "
/**
* Returns a new " . $classname . " object.
*
* @param string \$modelAlias The alias of a model in the query
* @param $classna... | [
"protected",
"function",
"addFactoryComment",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"classname",
"=",
"$",
"this",
"->",
"getNewStubQueryBuilder",
"(",
"$",
"this",
"->",
"getTable",
"(",
")",
")",
"->",
"getClassname",
"(",
")",
";",
"$",
"script",
".... | Adds the comment for the factory
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"comment",
"for",
"the",
"factory"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/QueryBuilder.php#L338-L350 |
propelorm/Propel | generator/lib/builder/om/QueryBuilder.php | QueryBuilder.addFactoryBody | protected function addFactoryBody(&$script)
{
$classname = $this->getNewStubQueryBuilder($this->getTable())->getClassname();
$script .= "
if (\$criteria instanceof " . $classname . ") {
return \$criteria;
}
\$query = new " . $classname . "(null, null, \$modelAlias... | php | protected function addFactoryBody(&$script)
{
$classname = $this->getNewStubQueryBuilder($this->getTable())->getClassname();
$script .= "
if (\$criteria instanceof " . $classname . ") {
return \$criteria;
}
\$query = new " . $classname . "(null, null, \$modelAlias... | [
"protected",
"function",
"addFactoryBody",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"classname",
"=",
"$",
"this",
"->",
"getNewStubQueryBuilder",
"(",
"$",
"this",
"->",
"getTable",
"(",
")",
")",
"->",
"getClassname",
"(",
")",
";",
"$",
"script",
".=",... | Adds the function body for the factory
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"function",
"body",
"for",
"the",
"factory"
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/QueryBuilder.php#L369-L383 |
propelorm/Propel | generator/lib/builder/om/QueryBuilder.php | QueryBuilder.addFindPkComplex | protected function addFindPkComplex(&$script)
{
$table = $this->getTable();
$pks = $table->getPrimaryKey();
$class = $this->getStubObjectBuilder()->getClassname();
$this->declareClasses('PropelPDO');
$script .= "
/**
* Find object by primary key.
*
* @param... | php | protected function addFindPkComplex(&$script)
{
$table = $this->getTable();
$pks = $table->getPrimaryKey();
$class = $this->getStubObjectBuilder()->getClassname();
$this->declareClasses('PropelPDO');
$script .= "
/**
* Find object by primary key.
*
* @param... | [
"protected",
"function",
"addFindPkComplex",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"pks",
"=",
"$",
"table",
"->",
"getPrimaryKey",
"(",
")",
";",
"$",
"class",
"=",
"$",
"this",
"-... | Adds the findPk method for this object.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"findPk",
"method",
"for",
"this",
"object",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/QueryBuilder.php#L584-L610 |
propelorm/Propel | generator/lib/builder/om/QueryBuilder.php | QueryBuilder.addFindPks | protected function addFindPks(&$script)
{
$this->declareClasses('PropelPDO', 'Propel');
$table = $this->getTable();
$pks = $table->getPrimaryKey();
$count = count($pks);
$class = $this->getStubObjectBuilder()->getClassname();
$script .= "
/**
* Find objects b... | php | protected function addFindPks(&$script)
{
$this->declareClasses('PropelPDO', 'Propel');
$table = $this->getTable();
$pks = $table->getPrimaryKey();
$count = count($pks);
$class = $this->getStubObjectBuilder()->getClassname();
$script .= "
/**
* Find objects b... | [
"protected",
"function",
"addFindPks",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"this",
"->",
"declareClasses",
"(",
"'PropelPDO'",
",",
"'Propel'",
")",
";",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"pks",
"=",
"$",
"tabl... | Adds the findPks method for this object.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"findPks",
"method",
"for",
"this",
"object",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/QueryBuilder.php#L617-L656 |
propelorm/Propel | generator/lib/builder/om/QueryBuilder.php | QueryBuilder.addFilterByPrimaryKey | protected function addFilterByPrimaryKey(&$script)
{
$script .= "
/**
* Filter the query by primary key
*
* @param mixed \$key Primary key to use for the query
*
* @return " . $this->getStubQueryBuilder()->getClassname() . " The current query, for fluid interface
*/
... | php | protected function addFilterByPrimaryKey(&$script)
{
$script .= "
/**
* Filter the query by primary key
*
* @param mixed \$key Primary key to use for the query
*
* @return " . $this->getStubQueryBuilder()->getClassname() . " The current query, for fluid interface
*/
... | [
"protected",
"function",
"addFilterByPrimaryKey",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"script",
".=",
"\"\n /**\n * Filter the query by primary key\n *\n * @param mixed \\$key Primary key to use for the query\n *\n * @return \"",
".",
"$",
"this",
"->",... | Adds the filterByPrimaryKey method for this object.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"filterByPrimaryKey",
"method",
"for",
"this",
"object",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/QueryBuilder.php#L663-L700 |
propelorm/Propel | generator/lib/builder/om/QueryBuilder.php | QueryBuilder.addFilterByCol | protected function addFilterByCol(&$script, $col)
{
$colPhpName = $col->getPhpName();
$colName = $col->getName();
$variableName = $col->getStudlyPhpName();
$qualifiedName = $this->getColumnConstant($col);
$script .= "
/**
* Filter the query on the $colName column
... | php | protected function addFilterByCol(&$script, $col)
{
$colPhpName = $col->getPhpName();
$colName = $col->getName();
$variableName = $col->getStudlyPhpName();
$qualifiedName = $this->getColumnConstant($col);
$script .= "
/**
* Filter the query on the $colName column
... | [
"protected",
"function",
"addFilterByCol",
"(",
"&",
"$",
"script",
",",
"$",
"col",
")",
"{",
"$",
"colPhpName",
"=",
"$",
"col",
"->",
"getPhpName",
"(",
")",
";",
"$",
"colName",
"=",
"$",
"col",
"->",
"getName",
"(",
")",
";",
"$",
"variableName"... | Adds the filterByCol method for this object.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"filterByCol",
"method",
"for",
"this",
"object",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/QueryBuilder.php#L763-L951 |
propelorm/Propel | generator/lib/builder/om/QueryBuilder.php | QueryBuilder.addFilterByArrayCol | protected function addFilterByArrayCol(&$script, $col)
{
$colPhpName = $col->getPhpName();
$singularPhpName = rtrim($colPhpName, 's');
$colName = $col->getName();
$variableName = $col->getStudlyPhpName();
$qualifiedName = $this->getColumnConstant($col);
$script .= "
... | php | protected function addFilterByArrayCol(&$script, $col)
{
$colPhpName = $col->getPhpName();
$singularPhpName = rtrim($colPhpName, 's');
$colName = $col->getName();
$variableName = $col->getStudlyPhpName();
$qualifiedName = $this->getColumnConstant($col);
$script .= "
... | [
"protected",
"function",
"addFilterByArrayCol",
"(",
"&",
"$",
"script",
",",
"$",
"col",
")",
"{",
"$",
"colPhpName",
"=",
"$",
"col",
"->",
"getPhpName",
"(",
")",
";",
"$",
"singularPhpName",
"=",
"rtrim",
"(",
"$",
"colPhpName",
",",
"'s'",
")",
";... | Adds the singular filterByCol method for an Array column.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"singular",
"filterByCol",
"method",
"for",
"an",
"Array",
"column",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/QueryBuilder.php#L958-L997 |
propelorm/Propel | generator/lib/builder/om/QueryBuilder.php | QueryBuilder.addFilterByFk | protected function addFilterByFk(&$script, $fk)
{
$this->declareClasses('PropelObjectCollection', 'PropelCollection', 'PropelException');
$table = $this->getTable();
$queryClass = $this->getStubQueryBuilder()->getClassname();
$fkTable = $this->getForeignTable($fk);
$fkStubObj... | php | protected function addFilterByFk(&$script, $fk)
{
$this->declareClasses('PropelObjectCollection', 'PropelCollection', 'PropelException');
$table = $this->getTable();
$queryClass = $this->getStubQueryBuilder()->getClassname();
$fkTable = $this->getForeignTable($fk);
$fkStubObj... | [
"protected",
"function",
"addFilterByFk",
"(",
"&",
"$",
"script",
",",
"$",
"fk",
")",
"{",
"$",
"this",
"->",
"declareClasses",
"(",
"'PropelObjectCollection'",
",",
"'PropelCollection'",
",",
"'PropelException'",
")",
";",
"$",
"table",
"=",
"$",
"this",
... | Adds the filterByFk method for this object.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"filterByFk",
"method",
"for",
"this",
"object",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/QueryBuilder.php#L1004-L1069 |
propelorm/Propel | generator/lib/builder/om/QueryBuilder.php | QueryBuilder.addFilterByRefFk | protected function addFilterByRefFk(&$script, $fk)
{
$this->declareClasses('PropelObjectCollection', 'PropelCollection', 'PropelException');
$table = $this->getTable();
$queryClass = $this->getStubQueryBuilder()->getClassname();
$fkTable = $this->getTable()->getDatabase()->getTable($... | php | protected function addFilterByRefFk(&$script, $fk)
{
$this->declareClasses('PropelObjectCollection', 'PropelCollection', 'PropelException');
$table = $this->getTable();
$queryClass = $this->getStubQueryBuilder()->getClassname();
$fkTable = $this->getTable()->getDatabase()->getTable($... | [
"protected",
"function",
"addFilterByRefFk",
"(",
"&",
"$",
"script",
",",
"$",
"fk",
")",
"{",
"$",
"this",
"->",
"declareClasses",
"(",
"'PropelObjectCollection'",
",",
"'PropelCollection'",
",",
"'PropelException'",
")",
";",
"$",
"table",
"=",
"$",
"this",... | Adds the filterByRefFk method for this object.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"filterByRefFk",
"method",
"for",
"this",
"object",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/QueryBuilder.php#L1076-L1129 |
propelorm/Propel | generator/lib/builder/om/QueryBuilder.php | QueryBuilder.addJoinFk | protected function addJoinFk(&$script, $fk)
{
$table = $this->getTable();
$queryClass = $this->getStubQueryBuilder()->getClassname();
$fkTable = $this->getForeignTable($fk);
$relationName = $this->getFKPhpNameAffix($fk);
$joinType = $this->getJoinType($fk);
$this->add... | php | protected function addJoinFk(&$script, $fk)
{
$table = $this->getTable();
$queryClass = $this->getStubQueryBuilder()->getClassname();
$fkTable = $this->getForeignTable($fk);
$relationName = $this->getFKPhpNameAffix($fk);
$joinType = $this->getJoinType($fk);
$this->add... | [
"protected",
"function",
"addJoinFk",
"(",
"&",
"$",
"script",
",",
"$",
"fk",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"queryClass",
"=",
"$",
"this",
"->",
"getStubQueryBuilder",
"(",
")",
"->",
"getClassname",
... | Adds the joinFk method for this object.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"joinFk",
"method",
"for",
"this",
"object",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/QueryBuilder.php#L1136-L1144 |
propelorm/Propel | generator/lib/builder/om/QueryBuilder.php | QueryBuilder.addJoinRefFk | protected function addJoinRefFk(&$script, $fk)
{
$table = $this->getTable();
$queryClass = $this->getStubQueryBuilder()->getClassname();
$fkTable = $this->getTable()->getDatabase()->getTable($fk->getTableName());
$relationName = $this->getRefFKPhpNameAffix($fk);
$joinType = $... | php | protected function addJoinRefFk(&$script, $fk)
{
$table = $this->getTable();
$queryClass = $this->getStubQueryBuilder()->getClassname();
$fkTable = $this->getTable()->getDatabase()->getTable($fk->getTableName());
$relationName = $this->getRefFKPhpNameAffix($fk);
$joinType = $... | [
"protected",
"function",
"addJoinRefFk",
"(",
"&",
"$",
"script",
",",
"$",
"fk",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"queryClass",
"=",
"$",
"this",
"->",
"getStubQueryBuilder",
"(",
")",
"->",
"getClassname... | Adds the joinRefFk method for this object.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"joinRefFk",
"method",
"for",
"this",
"object",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/QueryBuilder.php#L1151-L1159 |
propelorm/Propel | generator/lib/builder/om/QueryBuilder.php | QueryBuilder.addJoinRelated | protected function addJoinRelated(&$script, $fkTable, $queryClass, $relationName, $joinType)
{
$script .= "
/**
* Adds a JOIN clause to the query using the " . $relationName . " relation
*
* @param string \$relationAlias optional alias for the relation
* @param string \$joinT... | php | protected function addJoinRelated(&$script, $fkTable, $queryClass, $relationName, $joinType)
{
$script .= "
/**
* Adds a JOIN clause to the query using the " . $relationName . " relation
*
* @param string \$relationAlias optional alias for the relation
* @param string \$joinT... | [
"protected",
"function",
"addJoinRelated",
"(",
"&",
"$",
"script",
",",
"$",
"fkTable",
",",
"$",
"queryClass",
",",
"$",
"relationName",
",",
"$",
"joinType",
")",
"{",
"$",
"script",
".=",
"\"\n /**\n * Adds a JOIN clause to the query using the \"",
".",
... | Adds a joinRelated method for this object.
@param string &$script The script will be modified in this method. | [
"Adds",
"a",
"joinRelated",
"method",
"for",
"this",
"object",
"."
] | train | https://github.com/propelorm/Propel/blob/3f7a284906ce3e402bcb101938270842fdad71fa/generator/lib/builder/om/QueryBuilder.php#L1166-L1201 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.