本文整理匯總了PHP中Propel\Runtime\Collection\ObjectCollection::search方法的典型用法代碼示例。如果您正苦於以下問題:PHP ObjectCollection::search方法的具體用法?PHP ObjectCollection::search怎麽用?PHP ObjectCollection::search使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Propel\Runtime\Collection\ObjectCollection
的用法示例。
在下文中一共展示了ObjectCollection::search方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: addRIssuesXmlplugin
/**
* Method called to associate a ChildRIssuesXmlplugin object to this object
* through the ChildRIssuesXmlplugin foreign key attribute.
*
* @param ChildRIssuesXmlplugin $l ChildRIssuesXmlplugin
* @return $this|\Plugins The current object (for fluent API support)
*/
public function addRIssuesXmlplugin(ChildRIssuesXmlplugin $l)
{
if ($this->collRIssuesXmlplugins === null) {
$this->initRIssuesXmlplugins();
$this->collRIssuesXmlpluginsPartial = true;
}
if (!$this->collRIssuesXmlplugins->contains($l)) {
$this->doAddRIssuesXmlplugin($l);
if ($this->rIssuesXmlpluginsScheduledForDeletion and $this->rIssuesXmlpluginsScheduledForDeletion->contains($l)) {
$this->rIssuesXmlpluginsScheduledForDeletion->remove($this->rIssuesXmlpluginsScheduledForDeletion->search($l));
}
}
return $this;
}
示例2: addFileMeta
/**
* Method called to associate a ChildFileMeta object to this object
* through the ChildFileMeta foreign key attribute.
*
* @param ChildFileMeta $l ChildFileMeta
* @return $this|\UserAttributes The current object (for fluent API support)
*/
public function addFileMeta(ChildFileMeta $l)
{
if ($this->collFileMetas === null) {
$this->initFileMetas();
$this->collFileMetasPartial = true;
}
if (!$this->collFileMetas->contains($l)) {
$this->doAddFileMeta($l);
if ($this->fileMetasScheduledForDeletion and $this->fileMetasScheduledForDeletion->contains($l)) {
$this->fileMetasScheduledForDeletion->remove($this->fileMetasScheduledForDeletion->search($l));
}
}
return $this;
}
示例3: testSearchMatchesNotSimilarNewObjects
public function testSearchMatchesNotSimilarNewObjects()
{
$col = new ObjectCollection();
$b1 = new Book();
$b1->setTitle('Bar');
$b1->setISBN('012345');
$b2 = clone $b1;
$this->assertFalse($col->search($b1), 'search() returns false on an empty collection');
$col = new ObjectCollection(array($b1));
$this->assertTrue(0 === $col->search($b1));
$this->assertFalse(0 === $col->search($b2));
}
示例4:
/**
* Method called to associate a Childтипытехникимтр object to this object
* through the Childтипытехникимтр foreign key attribute.
*
* @param Childтипытехникимтр $l Childтипытехникимтр
* @return $this|\отображаемыетипытехникимтр The current object (for fluent API support)
*/
public function addтипытехникимтр(Childтипытехникимтр $l)
{
if ($this->collтипытехникимтрs === null) {
$this->initтипытехникимтрs();
$this->collтипытехникимтрsPartial = true;
}
if (!$this->collтипытехникимтрs->contains($l)) {
$this->doAddтипытехникимтр($l);
if ($this->�ипытехникимтрsScheduledForDeletion and $this->�ипытехникимтрsScheduledForDeletion->contains($l)) {
$this->�ипытехникимтрsScheduledForDeletion->remove($this->�ипытехникимтрsScheduledForDeletion->search($l));
}
}
return $this;
}
開發者ID:Polymedia,項目名稱:BI-Platform-v3,代碼行數:21,代碼來源:отображаемыетипытехникимтр.php
示例5: addTemplates
/**
* Method called to associate a ChildTemplates object to this object
* through the ChildTemplates foreign key attribute.
*
* @param ChildTemplates $l ChildTemplates
* @return $this|\Templatenames The current object (for fluent API support)
*/
public function addTemplates(ChildTemplates $l)
{
if ($this->collTemplatess === null) {
$this->initTemplatess();
$this->collTemplatessPartial = true;
}
if (!$this->collTemplatess->contains($l)) {
$this->doAddTemplates($l);
if ($this->templatessScheduledForDeletion and $this->templatessScheduledForDeletion->contains($l)) {
$this->templatessScheduledForDeletion->remove($this->templatessScheduledForDeletion->search($l));
}
}
return $this;
}
示例6: addImageGalleryMap
/**
* Method called to associate a ChildImageGalleryMap object to this object
* through the ChildImageGalleryMap foreign key attribute.
*
* @param ChildImageGalleryMap $l ChildImageGalleryMap
* @return $this|\Models\Image The current object (for fluent API support)
*/
public function addImageGalleryMap(ChildImageGalleryMap $l)
{
if ($this->collImageGalleryMaps === null) {
$this->initImageGalleryMaps();
$this->collImageGalleryMapsPartial = true;
}
if (!$this->collImageGalleryMaps->contains($l)) {
$this->doAddImageGalleryMap($l);
if ($this->imageGalleryMapsScheduledForDeletion and $this->imageGalleryMapsScheduledForDeletion->contains($l)) {
$this->imageGalleryMapsScheduledForDeletion->remove($this->imageGalleryMapsScheduledForDeletion->search($l));
}
}
return $this;
}
示例7:
/**
* Method called to associate a Childфизическиеобъёмы object to this object
* through the Childфизическиеобъёмы foreign key attribute.
*
* @param Childфизическиеобъёмы $l Childфизическиеобъёмы
* @return $this|\типыработ The current object (for fluent API support)
*/
public function addфизическиеобъёмы(Childфизическиеобъёмы $l)
{
if ($this->collфизическиеобъёмыs === null) {
$this->initфизическиеобъёмыs();
$this->collфизическиеобъёмыsPartial = true;
}
if (!$this->collфизическиеобъёмыs->contains($l)) {
$this->doAddфизическиеобъёмы($l);
if ($this->�изическиеобъёмыsScheduledForDeletion and $this->�изическиеобъёмыsScheduledForDeletion->contains($l)) {
$this->�изическиеобъёмыsScheduledForDeletion->remove($this->�изическиеобъёмыsScheduledForDeletion->search($l));
}
}
return $this;
}
示例8:
/**
* Method called to associate a Childпроизводственныепрограммы object to this object
* through the Childпроизводственныепрограммы foreign key attribute.
*
* @param Childпроизводственныепрограммы $l Childпроизводственныепрограммы
* @return $this|\программы The current object (for fluent API support)
*/
public function addпроизводственныепрограммы(Childпроизводственныепрограммы $l)
{
if ($this->collпроизводственныепрограммыs === null) {
$this->initпроизводственныепрограммыs();
$this->collпроизводственныепрограммыsPartial = true;
}
if (!$this->collпроизводственныепрограммыs->contains($l)) {
$this->doAddпроизводственныепрограммы($l);
if ($this->�роизводственныепрограммыsScheduledForDeletion and $this->�роизводственныепрограммыsScheduledForDeletion->contains($l)) {
$this->�роизводственныепрограммыsScheduledForDeletion->remove($this->�роизводственныепрограммыsScheduledForDeletion->search($l));
}
}
return $this;
}
示例9:
/**
* Method called to associate a Childмобилизацияпомесяцам object to this object
* through the Childмобилизацияпомесяцам foreign key attribute.
*
* @param Childмобилизацияпомесяцам $l Childмобилизацияпомесяцам
* @return $this|\типытехникимобилизация The current object (for fluent API support)
*/
public function addмобилизацияпомесяцам(Childмобилизацияпомесяцам $l)
{
if ($this->collмобилизацияпомесяцамs === null) {
$this->initмобилизацияпомесяцамs();
$this->collмобилизацияпомесяцамsPartial = true;
}
if (!$this->collмобилизацияпомесяцамs->contains($l)) {
$this->doAddмобилизацияпомесяцам($l);
if ($this->�обилизацияпомесяцамsScheduledForDeletion and $this->�обилизацияпомесяцамsScheduledForDeletion->contains($l)) {
$this->�обилизацияпомесяцамsScheduledForDeletion->remove($this->�обилизацияпомесяцамsScheduledForDeletion->search($l));
}
}
return $this;
}
示例10: addRating
/**
* Method called to associate a ChildRating object to this object
* through the ChildRating foreign key attribute.
*
* @param ChildRating $l ChildRating
* @return $this|\Models\Comment The current object (for fluent API support)
*/
public function addRating(ChildRating $l)
{
if ($this->collRatings === null) {
$this->initRatings();
$this->collRatingsPartial = true;
}
if (!$this->collRatings->contains($l)) {
$this->doAddRating($l);
if ($this->ratingsScheduledForDeletion and $this->ratingsScheduledForDeletion->contains($l)) {
$this->ratingsScheduledForDeletion->remove($this->ratingsScheduledForDeletion->search($l));
}
}
return $this;
}
示例11: addWishlistProduct
/**
* Method called to associate a ChildWishlistProduct object to this object
* through the ChildWishlistProduct foreign key attribute.
*
* @param ChildWishlistProduct $l ChildWishlistProduct
* @return $this|\App\Propel\Wishlist The current object (for fluent API support)
*/
public function addWishlistProduct(ChildWishlistProduct $l)
{
if ($this->collWishlistProducts === null) {
$this->initWishlistProducts();
$this->collWishlistProductsPartial = true;
}
if (!$this->collWishlistProducts->contains($l)) {
$this->doAddWishlistProduct($l);
if ($this->wishlistProductsScheduledForDeletion and $this->wishlistProductsScheduledForDeletion->contains($l)) {
$this->wishlistProductsScheduledForDeletion->remove($this->wishlistProductsScheduledForDeletion->search($l));
}
}
return $this;
}
示例12: addArtistLyric
/**
* Method called to associate a ArtistLyric object to this object
* through the ArtistLyric foreign key attribute.
*
* @param ArtistLyric $l ArtistLyric
* @return $this|\Tekstove\ApiBundle\Model\Artist The current object (for fluent API support)
*/
public function addArtistLyric(ArtistLyric $l)
{
if ($this->collArtistLyrics === null) {
$this->initArtistLyrics();
$this->collArtistLyricsPartial = true;
}
if (!$this->collArtistLyrics->contains($l)) {
$this->doAddArtistLyric($l);
if ($this->artistLyricsScheduledForDeletion and $this->artistLyricsScheduledForDeletion->contains($l)) {
$this->artistLyricsScheduledForDeletion->remove($this->artistLyricsScheduledForDeletion->search($l));
}
}
return $this;
}
示例13: addResource
/**
* Method called to associate a ChildResource object to this object
* through the ChildResource foreign key attribute.
*
* @param ChildResource $l ChildResource
* @return $this|\App\Propel\ResourceType The current object (for fluent API support)
*/
public function addResource(ChildResource $l)
{
if ($this->collResources === null) {
$this->initResources();
$this->collResourcesPartial = true;
}
if (!$this->collResources->contains($l)) {
$this->doAddResource($l);
if ($this->resourcesScheduledForDeletion and $this->resourcesScheduledForDeletion->contains($l)) {
$this->resourcesScheduledForDeletion->remove($this->resourcesScheduledForDeletion->search($l));
}
}
return $this;
}
示例14: addBet
/**
* Method called to associate a ChildBet object to this object
* through the ChildBet foreign key attribute.
*
* @param ChildBet $l ChildBet
* @return $this|\ApostaAiApi\Models\User The current object (for fluent API support)
*/
public function addBet(ChildBet $l)
{
if ($this->collBets === null) {
$this->initBets();
$this->collBetsPartial = true;
}
if (!$this->collBets->contains($l)) {
$this->doAddBet($l);
if ($this->betsScheduledForDeletion and $this->betsScheduledForDeletion->contains($l)) {
$this->betsScheduledForDeletion->remove($this->betsScheduledForDeletion->search($l));
}
}
return $this;
}
示例15:
/**
* Method called to associate a ChildПредписания object to this object
* through the ChildПредписания foreign key attribute.
*
* @param ChildПредписания $l ChildПредписания
* @return $this|\СтатусыЗаявкиЗавершение The current object (for fluent API support)
*/
public function addПредписания(ChildПредписания $l)
{
if ($this->collПредписанияs === null) {
$this->initПредписанияs();
$this->collПредписанияsPartial = true;
}
if (!$this->collПредписанияs->contains($l)) {
$this->doAddПредписания($l);
if ($this->�редписанияsScheduledForDeletion and $this->�редписанияsScheduledForDeletion->contains($l)) {
$this->�редписанияsScheduledForDeletion->remove($this->�редписанияsScheduledForDeletion->search($l));
}
}
return $this;
}