Esempio n. 1
1
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     // $rules->add($rules->isUnique(['email']));
     // $rules->add($rules->isUnique(['username']));
     $rules->add($rules->existsIn(['listing_id'], 'Listings'));
     return $rules;
 }
Esempio n. 2
1
 public function buildRules(RulesChecker $rules)
 {
     $rules->add([$this, 'ruleRoleChange']);
     $rules->addUpdate([$this, 'ruleMatchingModified']);
     $rules->addDelete([$this, 'ruleNoCharacters']);
     return $rules;
 }
Esempio n. 3
1
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     //$rules->add($rules->existsIn(['jobs_id'], 'Jobs'));
     //$rules->add($rules->existsIn(['senders_id'], 'Senders'));
     $rules->add($rules->existsIn(['messages_id'], 'Messages'));
     return $rules;
 }
Esempio n. 4
1
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->isUnique(['username']));
     //Same email should be allowed in contact form
     //$rules->add($rules->isUnique(['email']));
     return $rules;
 }
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->existsIn(['client_info_id'], 'ClientInfos'));
     $rules->add($rules->existsIn(['client_contact_id'], 'ClientContacts'));
     $rules->add($rules->existsIn(['client_vehicle_id'], 'ClientVehicles'));
     $rules->add($rules->existsIn(['client_trip_path_id'], 'ClientTripPaths'));
     return $rules;
 }
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->existsIn(['parent_id'], 'ParentDispositions'));
     $rules->add($rules->existsIn(['letter_id'], 'Letters'));
     $rules->add($rules->existsIn(['user_id'], 'Users'));
     $rules->add($rules->existsIn(['recipient_id'], 'Recipients'));
     return $rules;
 }
Esempio n. 7
1
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->isUnique(['username']));
     $rules->add($rules->isUnique(['email']));
     $rules->add($rules->existsIn(['department_id'], 'Departments'));
     $rules->add($rules->existsIn(['user_id'], 'Users'));
     return $rules;
 }
Esempio n. 8
1
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->existsIn(['avaliacao_desempenho_id'], 'AvaliacaoDesempenhos'));
     $rules->add($rules->existsIn(['competencia_id'], 'Competencias'));
     $rules->add($rules->existsIn(['cargo_id'], 'Cargos'));
     $rules->add($rules->existsIn(['grupo_id'], 'Grupos'));
     return $rules;
 }
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->existsIn(['category_id'], 'Categories'));
     $rules->add($rules->existsIn(['account_id'], 'Accounts'));
     $rules->add($rules->existsIn(['parent_id'], 'ParentTransactions'));
     $rules->add($rules->existsIn(['recurrence_id'], 'Recurrences'));
     return $rules;
 }
Esempio n. 10
1
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->existsIn(['user_id'], 'Users'));
     $rules->add($rules->existsIn(['project_id'], 'Projects'));
     $rules->add($rules->existsIn(['group_id'], 'Groups'));
     $rules->add($rules->existsIn(['task_id'], 'Tasks'));
     return $rules;
 }
Esempio n. 11
1
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->existsIn(['user_id'], 'Users'));
     $rules->add($rules->existsIn(['community_id'], 'Communities'));
     $rules->add($rules->existsIn(['product_id'], 'Products'));
     $rules->add($rules->existsIn(['refunder_id'], 'Refunders'));
     return $rules;
 }
Esempio n. 12
1
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->isUnique(['username']));
     $rules->add($rules->isUnique(['email']));
     $rules->add($rules->isUnique(['id']));
     $rules->add($rules->existsIn(['usertypes_id'], 'Usertypes'));
     return $rules;
 }
Esempio n. 13
1
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->existsIn(['event_type_id'], 'EventTypes'));
     $rules->add($rules->existsIn(['user_id'], 'Users'));
     $rules->add($rules->existsIn(['course_id'], 'Courses'));
     $rules->add($rules->existsIn(['group_id'], 'Groups'));
     return $rules;
 }
Esempio n. 14
1
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->isUnique(['username']));
     $rules->add($rules->isUnique(['email']));
     $rules->add($rules->existsIn(['faculty_id'], 'Faculties'));
     $rules->add($rules->existsIn(['role_id'], 'Roles'));
     return $rules;
 }
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->existsIn(['user_id'], 'Users'));
     $rules->add($rules->existsIn(['language_id'], 'Languages'));
     $rules->add($rules->existsIn(['source_id'], 'Sources'));
     $rules->add($rules->existsIn(['translation_id'], 'Translations'));
     return $rules;
 }
Esempio n. 16
1
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->existsIn(['fuel_type_id'], 'FuelTypes'));
     $rules->add($rules->existsIn(['vehicle_type_id'], 'VehicleTypes'));
     $rules->add($rules->existsIn(['client_info_id'], 'ClientInfos'));
     $rules->add($rules->existsIn(['client_device_id'], 'ClientDevices'));
     return $rules;
 }
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->existsIn(['user_id'], 'Users'));
     $rules->add($rules->existsIn(['location_id'], 'Locations'));
     $rules->add($rules->existsIn(['item_id'], 'Items'));
     $rules->add($rules->existsIn(['grade_id'], 'Grades'));
     return $rules;
 }
Esempio n. 18
1
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->isUnique(['email']));
     $rules->add($rules->isUnique(['username']));
     $rules->add($rules->existsIn(['generation_id'], 'Generations'));
     $rules->add($rules->existsIn(['career_id'], 'Careers'));
     return $rules;
 }
Esempio n. 19
1
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->existsIn(['tiposmovimento_id'], 'Tiposmovimentos'));
     $rules->add($rules->existsIn(['clifor_id'], 'Clifors'));
     $rules->add($rules->existsIn(['produto_id'], 'Produtos'));
     $rules->add($rules->existsIn(['estoque_id'], 'Estoques'));
     return $rules;
 }
Esempio n. 20
0
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->existsIn(['user_id'], 'Users'));
     $rules->add($rules->existsIn(['product_id'], 'Products'));
     $rules->add($rules->existsIn(['product_price_id'], 'ProductPrices'));
     $rules->add($rules->existsIn(['order_id'], 'Orders'));
     return $rules;
 }
Esempio n. 21
0
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->existsIn(['veiculo_id'], 'Veiculos'));
     $rules->add($rules->existsIn(['implemento_id'], 'Implementos'));
     $rules->add($rules->existsIn(['motorista_id'], 'Motoristas'));
     $rules->add($rules->existsIn(['cidade_id'], 'Cidades'));
     return $rules;
 }
Esempio n. 22
0
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->existsIn(['usage_id'], 'Usages'));
     $rules->add($rules->existsIn(['glasstype_id'], 'Glasstypes'));
     $rules->add($rules->existsIn(['composition_id'], 'Compositions'));
     $rules->add($rules->existsIn(['balrating_id'], 'Balratings'));
     return $rules;
 }
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->existsIn(['category_id'], 'Categories'));
     $rules->add($rules->existsIn(['user_id'], 'Users'));
     $rules->add($rules->existsIn(['respondent_id'], 'Respondents'));
     $rules->add($rules->existsIn(['weather_id'], 'Weather'));
     return $rules;
 }
Esempio n. 24
0
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->existsIn(['user_id'], 'Users'));
     $rules->add($rules->existsIn(['membership_level_id'], 'MembershipLevels'));
     $rules->add($rules->existsIn(['admin_adder_id'], 'AdminAdders'));
     $rules->add($rules->existsIn(['refunder_id'], 'Refunders'));
     return $rules;
 }
Esempio n. 25
0
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->isUnique(['username']));
     $rules->add($rules->existsIn(['city_id'], 'Cities'));
     $rules->add($rules->existsIn(['state_id'], 'States'));
     $rules->add($rules->existsIn(['role_id'], 'Roles'));
     return $rules;
 }
Esempio n. 26
0
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->existsIn(['categoria_id'], 'Categorias'));
     $rules->add($rules->existsIn(['forma_pagamento_id'], 'FormaPagamentos'));
     $rules->add($rules->existsIn(['conta_id'], 'Contas'));
     $rules->add($rules->existsIn(['fornecedor_id'], 'Fornecedores'));
     return $rules;
 }
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->existsIn(['client_info_id'], 'ClientInfos'));
     $rules->add($rules->existsIn(['client_driver_id'], 'ClientDrivers'));
     $rules->add($rules->existsIn(['client_vehicle_id'], 'ClientVehicles'));
     $rules->add($rules->existsIn(['client_contact_id'], 'ClientContacts'));
     return $rules;
 }
Esempio n. 28
0
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->existsIn(['avaliacao_avaliador_id'], 'AvaliacaoAvaliadores'));
     $rules->add($rules->existsIn(['avaliacao_avaliado_id'], 'AvaliacaoAvaliados'));
     $rules->add($rules->existsIn(['questao_id'], 'Questoes'));
     $rules->add($rules->existsIn(['alternativa_id'], 'Alternativas'));
     return $rules;
 }
Esempio n. 29
0
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->existsIn(['request_id'], 'Requests'));
     $rules->add($rules->existsIn(['resource_id'], 'Resources'));
     $rules->add($rules->existsIn(['service_id'], 'Services'));
     $rules->add($rules->isUnique(['request_id', 'resource_id', 'service_id']));
     return $rules;
 }
Esempio n. 30
0
 /**
  * Returns a rules checker object that will be used for validating
  * application integrity.
  *
  * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
  * @return \Cake\ORM\RulesChecker
  */
 public function buildRules(RulesChecker $rules)
 {
     $rules->add($rules->existsIn(['client_info_id'], 'ClientInfos'));
     $rules->add($rules->existsIn(['expense_type_id'], 'ExpenseTypes'));
     $rules->add($rules->existsIn(['client_device_id'], 'ClientDevices'));
     $rules->add($rules->existsIn(['client_contact_id'], 'ClientContacts'));
     return $rules;
 }