예제 #1
0
 public function addNode()
 {
     $project = Project::open($_POST['project']);
     if ($project) {
         $node = NodeText::create($project->getPath(), $_POST['content']);
     }
 }
예제 #2
0
파일: project.php 프로젝트: eephyne/nemex
 public function getNode($name)
 {
     if (preg_match('/\\.(jpg|jpeg|png|gif)$/i', $name)) {
         return NodeImage::open($this->path . $name);
     } else {
         if (preg_match('/\\.md$/i', $name)) {
             return NodeText::open($this->path . $name);
         }
     }
     return null;
 }