Ejemplo n.º 1
0
 /**
  * Функция автозаполнения полей блока.
  * 
  * @return bool
  */
 public function setFieldAutoComplete()
 {
     require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/projects.php';
     $projects = new_projects::getTopProjectBudget(constant(get_class($this) . '::PROJECT_KIND'), $this->getListSize());
     if ($projects) {
         foreach ($projects as $project) {
             $link[] = $GLOBALS['host'] . getFriendlyURL('project', $project['id']);
         }
         $this->initBlock($link);
         return true;
     }
     return false;
 }