Append something to the history.

@param string            $type
@param string|array|bool $command
338040
protected function appendTo($type, $command)
    {
        // Flatten one-liners
        $command = (array) $command;
        $command = array_values($command);
        $flattened = count($command) === 1 ? $command[0] : $command;

        // Format commands
        foreach ($command as $key => $entry) {
            $command[$key] = $type === 'history' ? '$ '.$entry : $entry;
        }

        $this->logs->log($command);

        // Get the various handles
        $handle = $this->getHistoryHandle();
        $history = $this->getHistory();
        $timestamp = (string) microtime(true);

        // Set new history on correct handle
        $history[$type][$timestamp] = $flattened;

        $this->history[$handle] = $history;
    }
723154
public function increment($ip, $type)
    {
        $this->assertReady();
        
        $sql = sprintf("INSERT INTO %s SET %s=:type, %s=:ip",
            $this->dbAdapter->platform->quoteIdentifier($this->table),
            $this->dbAdapter->platform->quoteIdentifier($this->typeColumn),
            $this->dbAdapter->platform->quoteIdentifier($this->ipColumn));
        
        $parameters = array(
            'type' => $type,
            'ip' => $ip,
        );
        
        $this->dbAdapter->query($sql, $parameters);
    }
321916
public void addImplements(String type) {
		if (!Strings.isEmpty(type)) {
			this.sarlClass.getImplements().add(newTypeRef(this.container, type));
		}
	}
625974
protected function put($command, $params = null, $putcontenttype = 'application/json')
    {
        return $this->transport->put($command, $params, $putcontenttype);
    }
737621
protected function command($type, $parameters = array())
		{
			$parameters = array_merge(compact('type'), $parameters);
			$this->commands[] = new Fluent($parameters);
			return end($this->commands);
		}
18297
public function add($type, $data = [])
    {
        if ($this->type() === 'passed' && $type === 'failed') {
            $this->type('failed');
        }
        $data['type'] = $type;
        if (!isset($data['backtrace'])) {
            $data['backtrace'] = [];
        } else {
            $data['backtrace'] = Debugger::focus($this->block()->suite()->backtraceFocus(), $data['backtrace'], 1);
        }
        $child = new static($data + ['block' => $this->_block]);
        $this->_children[] = $child;
        return $child;
    }
881093
public function add(array $updates, $class, $append = true)
    {
        $commandClass = $this->getCommandClass('update.add');
        $this->command = new $commandClass($updates, $class, $append);

        return $this->command;
    }
520565
public function addReference(&$data, $type)
    {
        if (!$this->validate($data)) {
            return false;
        }

        $this->store[$type][] =& $data;
        return $data;
    }
432547
public function addColumn( $table, $column, $type) {
		$column = $this->check($column);
		$table = $this->check($table);
		$type=$this->typeno_sqltype[$type];
		$sql = "ALTER TABLE `$table` ADD `$column` $type ";
		$this->adapter->exec( $sql );
	}
1276303
function addr_append($type, $addr) {
      $addr_str = "";
      $addr_str .= sprintf("%s: %s <%s>", $type, $addr[0][1], $addr[0][0]);
      if(count($addr) > 1)
      {
         for($i = 1; $i < count($addr); $i++)
         {
            $addr_str .= sprintf(", %s <%s>", $addr[$i][1], $addr[$i][0]);
         }
         $addr_str .= "\r\n";
      }
      else
         $addr_str .= "\r\n";

      return($addr_str);
   }
1150946
public static function add($sType, $sMessage = NULL, $bHead = FALSE) {
		if ($sMessage === NULL) {
			return ;
		}
		self::_file($sType, $sMessage, $bHead, FILE_APPEND | LOCK_EX);
	}
180548
public function addCustomCommand($command)
    {
        $name = lcfirst(class_basename($command));

        $this->customCommands[$name] = $command;
    }
1075269
private function prepend($type, Minifier $minifier)
    {
        switch ($type) {
            case 'js':
                array_unshift($this->jsMinifiers, $minifier);
                break;

            case 'css':
                array_unshift($this->cssMinifiers, $minifier);
                break;
        }
    }
1223392
def _add(self, name, *args, **kwargs):
        ''''''

        self.commands.append(Command(name, args, kwargs))
300532
public function addType(Type $type, $name = '')
    {
        if (!$name) {
            $name = (string)$type;
        }

        $this->types[$name] = $type;
    }
1082326
public function addCallback( $type, $callback ) {
		if ( !isset( $this->callbacks[$type] ) ) {
			$this->callbacks[$type] = [];
		}
		$this->callbacks[$type][] = $callback;
	}
865371
public function onAddedToType(TypeInterface &$type)
    {
        parent::onAddedToType($type);

        if ($this->getAddIndex()) {
            $type->addIndex(new Index($this->name));
        }

        $type->addTrait(PositionInterface::class, PositionInterfaceImplementation::class);
    }