You are here

class HostingPlatformComposerGitNode in Aegir Deploy 7.3

@file The HostingPlatformComposerGitNode class.

Hierarchy

Expanded class hierarchy of HostingPlatformComposerGitNode

File

modules/platform_composer_git/includes/HostingPlatformComposerGitNode.inc, line 8
The HostingPlatformComposerGitNode class.

View source
class HostingPlatformComposerGitNode extends HostingNode {
  protected $info_fields = [
    'field_composer_git_docroot',
    'field_composer_git_project_url',
    'field_composer_git_path',
    'field_composer_git_version',
  ];
  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
HostingPlatformComposerGitNode::$info_fields protected property Overrides HostingNode::$info_fields
HostingPlatformComposerGitNode::nodeInsert public function