コード例 #1
0
ファイル: Executor.php プロジェクト: oncesk/runkit
 /**
  * @param RunkitProperty $property
  * @param string         $newName
  *
  * @return boolean
  */
 public function renameProperty(\Runkit\RunkitProperty $property, $newName)
 {
     if (!function_exists('runkit_default_property_add')) {
         return false;
     }
     if ($property->remove()) {
         return runkit_default_property_add($property->getClass(), $newName, $property->getValue(), $property->getOverrideMode() ? $property->getAccess() | Runkit::OVERRIDE_OBJECTS : $property->getAccess());
     }
     return false;
 }
コード例 #2
0
ファイル: Properties.php プロジェクト: oncesk/runkit
 /**
  * @param RunkitProperty $item
  *
  * @return boolean
  */
 protected function removeInternal($item)
 {
     return $item->remove();
 }