Beispiel #1
0
 /**
  * Called when the model type of a lexem changes from VT to something else.
  * Only deletes participles that do not have their own definitions.
  */
 public function deleteParticiple()
 {
     $infl = Inflection::loadParticiple();
     $adjModels = array();
     foreach ($this->getLexemModels() as $lm) {
         if ($lm->modelType == 'V' || $lm->modelType == 'VT') {
             $pm = ParticipleModel::get_by_verbModel($lm->modelNumber);
             $adjModels[] = $pm->adjectiveModel;
         }
     }
     $this->_deleteDependentModels($infl->id, 'A', $adjModels);
 }
Beispiel #2
0
 public static function loadByVerbModel($verbModel)
 {
     return ParticipleModel::get_by_verbModel(addslashes($verbModel));
 }