Exemple #1
0
 public function getRequestUrl()
 {
     $o = new \FXL\Component\Literacy\Word\Syllable($this->name);
     $syllables = $o->getArraySyllables();
     $rime = array_pop($syllables);
     if ($rime[strlen($rime) - 1] == "e") {
         $last = array_pop($syllables);
         $rime = $last . $rime;
     }
     return sprintf($this->url, $rime);
     //.sprintf($this->params, $this->paramUrl);
 }
Exemple #2
0
 public function getArrayFeet()
 {
     $words = $this->cutByWord();
     $syllables = array();
     foreach ($words as $word) {
         $o = new \FXL\Component\Literacy\Word\Syllable($word);
         $syllables = $this->concatArray($syllables, $o->getArraySyllables());
         unset($o);
     }
     $syllables = $this->concatSilentE($syllables);
     return $syllables;
 }