"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "system/src/Grav/Framework/Flex/FlexObject.php" between
grav-v1.7.17.zip and grav-v1.7.18.zip

About: Grav is a fast, simple, and flexible flat-file based CMS platform (using YAML and PHP). Contents are just simple markdown files in folders with optional extensions via API and hooks.

FlexObject.php  (grav-v1.7.17):FlexObject.php  (grav-v1.7.18)
skipping to change at line 1077 skipping to change at line 1077
protected function getAuthorizeAction(string $action): string protected function getAuthorizeAction(string $action): string
{ {
// Handle special action save, which can mean either update or create. // Handle special action save, which can mean either update or create.
if ($action === 'save') { if ($action === 'save') {
$action = $this->exists() ? 'update' : 'create'; $action = $this->exists() ? 'update' : 'create';
} }
return $action; return $action;
} }
/**
* Method to reset blueprints if the type changes.
*
* @return void
* @since 1.7.18
*/
protected function resetBlueprints(): void
{
$this->_blueprint = [];
}
// DEPRECATED METHODS // DEPRECATED METHODS
/** /**
* @param bool $prefix * @param bool $prefix
* @return string * @return string
* @deprecated 1.6 Use `->getFlexType()` instead. * @deprecated 1.6 Use `->getFlexType()` instead.
*/ */
public function getType($prefix = false) public function getType($prefix = false)
{ {
user_error(__METHOD__ . '() is deprecated since Grav 1.6, use ->getFlexT ype() method instead', E_USER_DEPRECATED); user_error(__METHOD__ . '() is deprecated since Grav 1.6, use ->getFlexT ype() method instead', E_USER_DEPRECATED);
 End of changes. 1 change blocks. 
0 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)