Adds a new criterion, and makes this set use conjuctive logic

@param string $master The master form field
@return ValidationLogicCriteria
347205
public function andIf($master = null)
    {
        if ($this->logicalOperator == "or") {
            throw new Exception("ValidationLogicCriteria: Cannot declare a logical operator more than once. (Specified andIf() after calling orIf()). Use a nested ValidationLogicCriteriaSet to combine conjunctive and disjuctive logic.");
        }
        if ($master) {
            $this->master = $master;
        }
        $this->logicalOperator = "and";
        return $this;
    }
929009
public function buildCriteria()
    {
        $criteria = new Criteria(DealerFolderTableMap::DATABASE_NAME);

        if ($this->isColumnModified(DealerFolderTableMap::ID)) $criteria->add(DealerFolderTableMap::ID, $this->id);
        if ($this->isColumnModified(DealerFolderTableMap::DEALER_ID)) $criteria->add(DealerFolderTableMap::DEALER_ID, $this->dealer_id);
        if ($this->isColumnModified(DealerFolderTableMap::FOLDER_ID)) $criteria->add(DealerFolderTableMap::FOLDER_ID, $this->folder_id);
        if ($this->isColumnModified(DealerFolderTableMap::CREATED_AT)) $criteria->add(DealerFolderTableMap::CREATED_AT, $this->created_at);
        if ($this->isColumnModified(DealerFolderTableMap::UPDATED_AT)) $criteria->add(DealerFolderTableMap::UPDATED_AT, $this->updated_at);
        if ($this->isColumnModified(DealerFolderTableMap::VERSION)) $criteria->add(DealerFolderTableMap::VERSION, $this->version);
        if ($this->isColumnModified(DealerFolderTableMap::VERSION_CREATED_AT)) $criteria->add(DealerFolderTableMap::VERSION_CREATED_AT, $this->version_created_at);
        if ($this->isColumnModified(DealerFolderTableMap::VERSION_CREATED_BY)) $criteria->add(DealerFolderTableMap::VERSION_CREATED_BY, $this->version_created_by);

        return $criteria;
    }
214677
public function addOr(AbstractCriterion $criterion)
    {
        $this->clauses[] = $criterion;
        $this->conjunctions[] = self::ODER;

        return $this;
    }
142742
public function add(\Caridea\Validate\Rule ...$rules): self
    {
        $this->rules = array_merge($this->rules, $rules);
        return $this;
    }
675417
public function buildCriteria()
    {
        $criteria = new Criteria(FunctionPhaseTableMap::DATABASE_NAME);

        if ($this->isColumnModified(FunctionPhaseTableMap::COL_ID)) {
            $criteria->add(FunctionPhaseTableMap::COL_ID, $this->id);
        }
        if ($this->isColumnModified(FunctionPhaseTableMap::COL_TYPE)) {
            $criteria->add(FunctionPhaseTableMap::COL_TYPE, $this->type);
        }
        if ($this->isColumnModified(FunctionPhaseTableMap::COL_SKILL_ID)) {
            $criteria->add(FunctionPhaseTableMap::COL_SKILL_ID, $this->skill_id);
        }
        if ($this->isColumnModified(FunctionPhaseTableMap::COL_TITLE)) {
            $criteria->add(FunctionPhaseTableMap::COL_TITLE, $this->title);
        }

        return $criteria;
    }
1293324
public function buildCriteria()
    {
        $criteria = new Criteria(M2PTableMap::DATABASE_NAME);

        if ($this->isColumnModified(M2PTableMap::COL_MEDIA_ID)) {
            $criteria->add(M2PTableMap::COL_MEDIA_ID, $this->media_id);
        }
        if ($this->isColumnModified(M2PTableMap::COL_PAGE_ID)) {
            $criteria->add(M2PTableMap::COL_PAGE_ID, $this->page_id);
        }

        return $criteria;
    }
156754
public function addCriterion(CriterionInterface $criterion, $name = null, $link = Link::LINK_AND)
    {
        if (null === $name) {
            $this->collection[] = [$criterion, $link];
        } else {
            $this->collection[$this->resolveString($name, __METHOD__)] = [$criterion, $link];
        }

        $this->collectionCount++;

        return $this;
    }
682124
public function buildCriteria()
    {
        $criteria = new Criteria(SourceTableMap::DATABASE_NAME);

        if ($this->isColumnModified(SourceTableMap::COL_ID)) {
            $criteria->add(SourceTableMap::COL_ID, $this->id);
        }
        if ($this->isColumnModified(SourceTableMap::COL_TITLE)) {
            $criteria->add(SourceTableMap::COL_TITLE, $this->title);
        }
        if ($this->isColumnModified(SourceTableMap::COL_HOST)) {
            $criteria->add(SourceTableMap::COL_HOST, $this->host);
        }
        if ($this->isColumnModified(SourceTableMap::COL_ENDPOINT)) {
            $criteria->add(SourceTableMap::COL_ENDPOINT, $this->endpoint);
        }
        if ($this->isColumnModified(SourceTableMap::COL_CREATED_AT)) {
            $criteria->add(SourceTableMap::COL_CREATED_AT, $this->created_at);
        }
        if ($this->isColumnModified(SourceTableMap::COL_UPDATED_AT)) {
            $criteria->add(SourceTableMap::COL_UPDATED_AT, $this->updated_at);
        }

        return $criteria;
    }
62381
public function buildCriteria()
    {
        $criteria = new Criteria(CustomerCustomerGroupTableMap::DATABASE_NAME);

        if ($this->isColumnModified(CustomerCustomerGroupTableMap::CUSTOMER_ID)) $criteria->add(CustomerCustomerGroupTableMap::CUSTOMER_ID, $this->customer_id);
        if ($this->isColumnModified(CustomerCustomerGroupTableMap::CUSTOMER_GROUP_ID)) $criteria->add(CustomerCustomerGroupTableMap::CUSTOMER_GROUP_ID, $this->customer_group_id);

        return $criteria;
    }
693932
public function buildCriteria()
    {
        $criteria = new Criteria(DealerContentTableMap::DATABASE_NAME);

        if ($this->isColumnModified(DealerContentTableMap::ID)) $criteria->add(DealerContentTableMap::ID, $this->id);
        if ($this->isColumnModified(DealerContentTableMap::DEALER_ID)) $criteria->add(DealerContentTableMap::DEALER_ID, $this->dealer_id);
        if ($this->isColumnModified(DealerContentTableMap::CONTENT_ID)) $criteria->add(DealerContentTableMap::CONTENT_ID, $this->content_id);
        if ($this->isColumnModified(DealerContentTableMap::CREATED_AT)) $criteria->add(DealerContentTableMap::CREATED_AT, $this->created_at);
        if ($this->isColumnModified(DealerContentTableMap::UPDATED_AT)) $criteria->add(DealerContentTableMap::UPDATED_AT, $this->updated_at);
        if ($this->isColumnModified(DealerContentTableMap::VERSION)) $criteria->add(DealerContentTableMap::VERSION, $this->version);
        if ($this->isColumnModified(DealerContentTableMap::VERSION_CREATED_AT)) $criteria->add(DealerContentTableMap::VERSION_CREATED_AT, $this->version_created_at);
        if ($this->isColumnModified(DealerContentTableMap::VERSION_CREATED_BY)) $criteria->add(DealerContentTableMap::VERSION_CREATED_BY, $this->version_created_by);

        return $criteria;
    }
120512
public function buildCriteria()
    {
        $criteria = new Criteria(FeatureTypeI18nTableMap::DATABASE_NAME);

        if ($this->isColumnModified(FeatureTypeI18nTableMap::ID)) $criteria->add(FeatureTypeI18nTableMap::ID, $this->id);
        if ($this->isColumnModified(FeatureTypeI18nTableMap::LOCALE)) $criteria->add(FeatureTypeI18nTableMap::LOCALE, $this->locale);
        if ($this->isColumnModified(FeatureTypeI18nTableMap::TITLE)) $criteria->add(FeatureTypeI18nTableMap::TITLE, $this->title);
        if ($this->isColumnModified(FeatureTypeI18nTableMap::DESCRIPTION)) $criteria->add(FeatureTypeI18nTableMap::DESCRIPTION, $this->description);

        return $criteria;
    }
441338
public function buildCriteria()
    {
        $criteria = new Criteria(PersonFunctionLinkTableMap::DATABASE_NAME);

        if ($this->isColumnModified(PersonFunctionLinkTableMap::ID)) $criteria->add(PersonFunctionLinkTableMap::ID, $this->id);
        if ($this->isColumnModified(PersonFunctionLinkTableMap::PERSON_ID)) $criteria->add(PersonFunctionLinkTableMap::PERSON_ID, $this->person_id);
        if ($this->isColumnModified(PersonFunctionLinkTableMap::FUNCTION_ID)) $criteria->add(PersonFunctionLinkTableMap::FUNCTION_ID, $this->function_id);
        if ($this->isColumnModified(PersonFunctionLinkTableMap::CREATED_AT)) $criteria->add(PersonFunctionLinkTableMap::CREATED_AT, $this->created_at);
        if ($this->isColumnModified(PersonFunctionLinkTableMap::UPDATED_AT)) $criteria->add(PersonFunctionLinkTableMap::UPDATED_AT, $this->updated_at);

        return $criteria;
    }
856284
public function buildCriteria()
    {
        $criteria = new Criteria(LineageTableMap::DATABASE_NAME);

        if ($this->isColumnModified(LineageTableMap::COL_ID)) {
            $criteria->add(LineageTableMap::COL_ID, $this->id);
        }
        if ($this->isColumnModified(LineageTableMap::COL_SKILL_ID)) {
            $criteria->add(LineageTableMap::COL_SKILL_ID, $this->skill_id);
        }
        if ($this->isColumnModified(LineageTableMap::COL_ANCESTOR_ID)) {
            $criteria->add(LineageTableMap::COL_ANCESTOR_ID, $this->ancestor_id);
        }
        if ($this->isColumnModified(LineageTableMap::COL_POSITION)) {
            $criteria->add(LineageTableMap::COL_POSITION, $this->position);
        }

        return $criteria;
    }
474737
public function buildCriteria()
    {
        $criteria = new Criteria(GamecurrencyTableMap::DATABASE_NAME);

        if ($this->isColumnModified(GamecurrencyTableMap::COL_ID)) {
            $criteria->add(GamecurrencyTableMap::COL_ID, $this->id);
        }
        if ($this->isColumnModified(GamecurrencyTableMap::COL_SENDERLOGIN)) {
            $criteria->add(GamecurrencyTableMap::COL_SENDERLOGIN, $this->senderlogin);
        }
        if ($this->isColumnModified(GamecurrencyTableMap::COL_RECEIVERLOGIN)) {
            $criteria->add(GamecurrencyTableMap::COL_RECEIVERLOGIN, $this->receiverlogin);
        }
        if ($this->isColumnModified(GamecurrencyTableMap::COL_TRANSACTIONID)) {
            $criteria->add(GamecurrencyTableMap::COL_TRANSACTIONID, $this->transactionid);
        }
        if ($this->isColumnModified(GamecurrencyTableMap::COL_BILLID)) {
            $criteria->add(GamecurrencyTableMap::COL_BILLID, $this->billid);
        }
        if ($this->isColumnModified(GamecurrencyTableMap::COL_AMOUNT)) {
            $criteria->add(GamecurrencyTableMap::COL_AMOUNT, $this->amount);
        }
        if ($this->isColumnModified(GamecurrencyTableMap::COL_MESSAGE)) {
            $criteria->add(GamecurrencyTableMap::COL_MESSAGE, $this->message);
        }
        if ($this->isColumnModified(GamecurrencyTableMap::COL_STATUS)) {
            $criteria->add(GamecurrencyTableMap::COL_STATUS, $this->status);
        }
        if ($this->isColumnModified(GamecurrencyTableMap::COL_DATETIME)) {
            $criteria->add(GamecurrencyTableMap::COL_DATETIME, $this->datetime);
        }

        return $criteria;
    }
748565
public function setRequired($required)
    {
        $this->required = (boolean) $required;
        if ($this->isRequired()) {
            $this->setAttribute('required');
            return $this;
        }

        if ($this->getAttributes()->containsKey('required')) {
                $this->getAttributes()->remove('required');
        }
        return $this;
    }
764299
public function getMasterList()
    {
        $list = array();
        foreach ($this->getCriteria() as $c) {
            if ($c instanceof ValidationLogicCriteria) {
                $list += $c->getMasterList();
            } else {
                $list[] = $c->getMaster();
            }
        }
        return $list;
    }
144383
public function buildCriteria()
    {
        $criteria = new Criteria(AttributeTypeTableMap::DATABASE_NAME);

        if ($this->isColumnModified(AttributeTypeTableMap::ID)) $criteria->add(AttributeTypeTableMap::ID, $this->id);
        if ($this->isColumnModified(AttributeTypeTableMap::SLUG)) $criteria->add(AttributeTypeTableMap::SLUG, $this->slug);
        if ($this->isColumnModified(AttributeTypeTableMap::HAS_ATTRIBUTE_AV_VALUE)) $criteria->add(AttributeTypeTableMap::HAS_ATTRIBUTE_AV_VALUE, $this->has_attribute_av_value);
        if ($this->isColumnModified(AttributeTypeTableMap::IS_MULTILINGUAL_ATTRIBUTE_AV_VALUE)) $criteria->add(AttributeTypeTableMap::IS_MULTILINGUAL_ATTRIBUTE_AV_VALUE, $this->is_multilingual_attribute_av_value);
        if ($this->isColumnModified(AttributeTypeTableMap::PATTERN)) $criteria->add(AttributeTypeTableMap::PATTERN, $this->pattern);
        if ($this->isColumnModified(AttributeTypeTableMap::CSS_CLASS)) $criteria->add(AttributeTypeTableMap::CSS_CLASS, $this->css_class);
        if ($this->isColumnModified(AttributeTypeTableMap::INPUT_TYPE)) $criteria->add(AttributeTypeTableMap::INPUT_TYPE, $this->input_type);
        if ($this->isColumnModified(AttributeTypeTableMap::MAX)) $criteria->add(AttributeTypeTableMap::MAX, $this->max);
        if ($this->isColumnModified(AttributeTypeTableMap::MIN)) $criteria->add(AttributeTypeTableMap::MIN, $this->min);
        if ($this->isColumnModified(AttributeTypeTableMap::STEP)) $criteria->add(AttributeTypeTableMap::STEP, $this->step);
        if ($this->isColumnModified(AttributeTypeTableMap::IMAGE_MAX_WIDTH)) $criteria->add(AttributeTypeTableMap::IMAGE_MAX_WIDTH, $this->image_max_width);
        if ($this->isColumnModified(AttributeTypeTableMap::IMAGE_MAX_HEIGHT)) $criteria->add(AttributeTypeTableMap::IMAGE_MAX_HEIGHT, $this->image_max_height);
        if ($this->isColumnModified(AttributeTypeTableMap::IMAGE_RATIO)) $criteria->add(AttributeTypeTableMap::IMAGE_RATIO, $this->image_ratio);
        if ($this->isColumnModified(AttributeTypeTableMap::CREATED_AT)) $criteria->add(AttributeTypeTableMap::CREATED_AT, $this->created_at);
        if ($this->isColumnModified(AttributeTypeTableMap::UPDATED_AT)) $criteria->add(AttributeTypeTableMap::UPDATED_AT, $this->updated_at);

        return $criteria;
    }