예제 #1
0
 /**
  * save the entry in the index for a ClassDocumentor object
  *
  * @param object $classDoc Instance of ClassDocumentor to add to database.
  * @return boolean success
  **/
 public function saveClassDocs(ClassDocumentor $classDoc)
 {
     $classDoc->getAll();
     $slug = $this->_makeSlug($classDoc->name);
     $new = array('name' => $classDoc->name, 'slug' => $slug, 'file_name' => $classDoc->classInfo['fileName'], 'method_index' => $this->_generateIndex($classDoc, 'methods'), 'property_index' => $this->_generateIndex($classDoc, 'properties'), 'flags' => ApiClass::CONCRETE_CLASS);
     $this->set($new);
     return $this->save();
 }