コード例 #1
0
 /**
  * @param Resource|Graph $resourceOrGraph
  * @param array    $frame
  *
  * @return Graph
  */
 public function getGraph($resourceOrGraph, $frame = null)
 {
     if ($resourceOrGraph instanceof Graph) {
         return $resourceOrGraph;
     }
     return $resourceOrGraph->getGraph();
 }
コード例 #2
0
ファイル: Resource.php プロジェクト: conjecto/nemrod
 /**
  * @return int|void
  */
 public function delete($property, $value = null)
 {
     $this->snapshot();
     $out = parent::delete($property, $value);
     return $out;
 }