You are here

class HostingPlatformGitNode in Aegir Deploy 7.3

@file The HostingPlatformGitNode class.

Hierarchy

Expanded class hierarchy of HostingPlatformGitNode

File

modules/platform_git/includes/HostingPlatformGitNode.inc, line 8
The HostingPlatformGitNode class.

View source
class HostingPlatformGitNode extends HostingNode {
  protected $info_fields = [
    'field_git_repository_url',
    'field_git_repository_path',
    'field_git_reference',
    'field_git_docroot',
  ];
  public function nodeInsert() {

    // Fields are cached empty when platform nodes are initially created. So,
    // we clear the cache for this specific node right after it's inserted, so
    // that its fields are available to pass to the back-end.
    cache_clear_all('field:node:' . $this
      ->getNid(), 'cache_field', TRUE);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
HostingFieldable::getEntityReference public function Return the target of an entityreference field.
HostingFieldable::getFieldValue public function Return the value of a field.
HostingFieldable::getFieldValueType public function
HostingFieldable::setEntityReference public function Return the target of an entityreference field.
HostingFieldable::setFieldValue public function Set the value of a field.
HostingFieldable::setProperty public function Set the value of a property.
HostingNode::$node protected property
HostingNode::fixNodeFieldDisplay public function Display a field as an Aegir-themed 'info' item.
HostingNode::getInfoFields protected function
HostingNode::getLanguage public function
HostingNode::getNid public function
HostingNode::getNode public function
HostingNode::getTitle public function
HostingNode::nodeView public function Alter the display of a node.
HostingNode::save public function Save the node.
HostingNode::__construct function
HostingPlatformGitNode::$info_fields protected property Overrides HostingNode::$info_fields
HostingPlatformGitNode::nodeInsert public function