Lines Matching defs:plugin

67 	 * @param   \action_plugin_gitbacked_editcommit plugin
70 public static function &create($repo_path, $source = null, \action_plugin_gitbacked_editcommit $plugin = null) {
71 return GitRepo::create_new($repo_path, $source, $plugin);
81 * @param \action_plugin_gitbacked_editcommit plugin
84 public static function open($repo_path, \action_plugin_gitbacked_editcommit $plugin = null) {
85 return new GitRepo($repo_path, $plugin);
98 * @param \action_plugin_gitbacked_editcommit plugin
101 public static function &clone_remote($repo_path, $remote, $reference = null, \action_plugin_gitbacked_editcommit $plugin = null) {
102 return GitRepo::create_new($repo_path, $plugin, $remote, true, $reference);
142 // protected ?\action_plugin_gitbacked_editcommit $plugin = null;
143 protected $plugin = null;
152 * @param \action_plugin_gitbacked_editcommit plugin
157 public static function &create_new($repo_path, \action_plugin_gitbacked_editcommit $plugin = null, $source = null, $remote_source = false, $reference = null) {
159 throw new Exception(self::handle_create_new_error($repo_path, $reference, '"'.$repo_path.'" is already a git repository', $plugin));
161 $repo = new self($repo_path, $plugin, true, false);
165 throw new Exception(self::handle_create_new_error($repo_path, $reference, '"'.$reference.'" is not a git repository. Cannot use as reference.', $plugin));
188 * @param \action_plugin_gitbacked_editcommit plugin
192 public function __construct($repo_path = null, \action_plugin_gitbacked_editcommit $plugin = null, $create_new = false, $_init = true) {
193 $this->plugin = $plugin;
362 protected static function handle_create_new_error($repo_path, $reference, $error_message, $plugin) {
363 if ($plugin instanceof \action_plugin_gitbacked_editcommit) {
364 $plugin->notify_create_new_error($repo_path, $reference, $error_message);
378 if ($this->plugin instanceof \action_plugin_gitbacked_editcommit) {
379 $this->plugin->notify_repo_path_error($repo_path, $error_message);
396 if ($this->plugin instanceof \action_plugin_gitbacked_editcommit) {
397 $this->plugin->notify_command_error($repo_path, $cwd, $command, $status, $error_message);
412 if ($this->plugin instanceof \action_plugin_gitbacked_editcommit) {
413 $this->plugin->notify_command_success($repo_path, $cwd, $command);