Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14768893
D9553.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
450 B
Referenced Files
None
Subscribers
None
D9553.diff
View Options
diff --git a/src/console/PhutilConsoleTable.php b/src/console/PhutilConsoleTable.php
--- a/src/console/PhutilConsoleTable.php
+++ b/src/console/PhutilConsoleTable.php
@@ -74,6 +74,13 @@
return $this;
}
+ public function addColumns(array $columns) {
+ foreach ($columns as $key => $column) {
+ $this->addColumn($key, $column);
+ }
+ return $this;
+ }
+
public function addRow(array $data) {
$this->data[] = $data;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 7:40 PM (20 h, 34 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7042948
Default Alt Text
D9553.diff (450 B)
Attached To
Mode
D9553: Add a `addColumns` method to `PhutilConsoleTable`.
Attached
Detach File
Event Timeline
Log In to Comment