Beispiel #1
0
 /**
  * Return an array of all the dictionnaries files
  *
  * @return array
  */
 public static function get_file_list()
 {
     return array_keys(Mudnames::getInstance()->_dictionnaries->get_dictionnaries_list());
 }
Beispiel #2
0
 /**
  * @param $slug
  * @param string $newSlug
  * @return mixed
  * @internal param $em
  */
 private function ubiquitySlug($slug, $newSlug = '')
 {
     if (!$newSlug) {
         $newSlug = $slug;
     }
     $em = $this->getDoctrine()->getManager();
     $project = $em->getRepository('AppBundle:Project')->findBySlug($slug);
     if ($project) {
         $newSlug = $slug . '-' . Mudnames::generate_name_from();
         return $this->ubiquitySlug($slug, $newSlug);
     }
     return $newSlug;
 }