Display using display abstract.

@param string $abstract
@param array  $arguments

@return Column
488612
public function displayUsing($abstract, $arguments = [])
    {
        $grid = $this->grid;

        $column = $this;

        return $this->display(function ($value) use ($grid, $column, $abstract, $arguments) {
            /** @var AbstractDisplayer $displayer */
            $displayer = new $abstract($value, $grid, $column, $this);

            return $displayer->display(...$arguments);
        });
    }
1178191
public static function table($params = array()) {

        if( !is_array($params) )
        {
            throw new \InvalidArgumentException("Arguments is not a Array". print_r($params, true));
        }

        $o = "<table ";
        $o .= (isset($params['class'])) ? " class='{$params['class']}'" : '';
        $o .= ">";

        $o .="<thead>";
        $o .="<tr>";
        if (isset($params['thead']) && is_array($params['thead'])) {
            foreach ($params['thead'] as $key => $value) {

                if (isset($params['th']) && $params['th'] == $key) {
                    $o .= "<th>" . $value . "</th>";
                } else {
                    $o .= "<th>" . $value . "</th>";
                }
            }
        }
        $o .= " </tr>";
        $o .= "</thead>";

        $o .= "<tfoot>";
        $o .="<tr>";
        if (isset($params['tfoot']) && is_array($params['tfoot'])) {
            foreach ($params['tfoot'] as $key => $value) {
                if (isset($params['td']) && $params['td'] == $key) {
                    $o .= "<td>" . $value . "</td>";
                } else {
                    $o .= "<td>" . $value . "</td>";
                }
            }
        }
        $o .= " </tr>";
        $o .= "</tfoot>";

        $o .= "<tbody>";
        $o .="<tr>";
        if (isset($params['tbody']) && is_array($params['tbody'])) {
            foreach ($params['tbody'] as $key => $value) {
                if (isset($params['td']) && $params['td'] == $key) {
                    $o .= "<td>" . $value . "</td>";
                } else {
                    $o .= "<td>" . $value . "</td>";
                }
            }
        }
        $o .= " </tr>";
        $o .= "</tbody>";
        $o .= "</table>";
        return $o;
    }
36812
protected function arguments(array $arguments = null)
    {
        return is_null($arguments)
            ? $this->arguments
            : ($this->arguments = $arguments);
    }
389470
protected static function renderArgumentType( $argument )
	{
		$type		= gettype( $argument );
		$length		= '';
		if( $type == 'string' )
			$length	= '('.strlen( $argument ).')';
		else if( $type == 'array' || $argument instanceof Countable )
			$length	= '('.count( $argument ).')';
		$type	= ucFirst( strtolower( gettype( $argument ) ) );
		return UI_HTML_Tag::create( 'span', $type.$length, array( 'class' => 'type' ) );
	}
508769
public function setArguments($arguments)
    {
        foreach ($arguments as $name => $argument) {
            $this->setArgument($name, $argument);
        }

        return $this;
    }
593130
public function fetchAll($as = 'array', $arguments = '')
    {

        $rows = array();
        $style = array(
            "array" => "fetchAssoc",
            "numeric" => "fetch",
            "object" => "fetchObject"
        );

        $as = !array_key_exists((string)$as, $style) ? "array" : (string)$as;

        //Getting all as an array
        while ($row = $this->$style[$as]($arguments)) {
            $rows[] = $row;
        }

        //Return the resultset;
        return $rows;
    }
683315
public function addQuery($args): self
    {
        if (!\is_array($args) && !($args instanceof AbstractQuery)) {
            throw new InvalidException('Invalid parameter. Has to be array or instance of Elastica\Query\AbstractQuery');
        }

        return $this->addParam('queries', $args);
    }
937617
public static function format(string $format, ...$arguments): self
    {
        $text = sprintf($format, ...$arguments);

        return new static($text);
    }
677609
public function make($abstract, $parameters = [])
    {
        $abstract = ucfirst($abstract);
        if (isset($this->Instances[$abstract])) {
            return $this->Instances[$abstract];
        }
        //未定义的服务类 返回空值;
        if (!isset($this->Providers[$abstract])) {
            return null;
        }
        // echo $abstract;
        $parameters = $parameters ?: isset($this->ObjectConfig[$abstract]) ? $this->ObjectConfig[$abstract] : [];
        $this->Instances[$abstract] = $this->build($abstract, $parameters);
        return $this->Instances[$abstract];
    }
342534
private function renderWithColumns($propertyNames, $args, $firstSorting)
    {
        $label = [];
        if (!\is_array($args)) {
            // @codingStandardsIgnoreStart
            @\trigger_error('Warning, column layout without arguments will not be supported.', E_USER_DEPRECATED);
            // @codingStandardsIgnoreEnd
            $label[] = [
                'colspan' => \count($propertyNames),
                'class'   => 'tl_file_list col_all',
                'content' => $args
            ];
        } else {
            foreach ($propertyNames as $propertyName) {
                $class = 'tl_file_list col_' . $propertyName;
                if ($firstSorting === $propertyName) {
                    $class .= ' ordered_by';
                }

                $label[] = [
                    'colspan' => 1,
                    'class'   => $class,
                    'content' => $args[$propertyName] ?: '-'
                ];
            }
        }

        return $label;
    }
1037804
public function make(string $abstract, array $parameters = [])
    {
        try {
            if (! isset($this->resolving[$abstract])) {
                $this->resolving[$abstract] = $this->construct($abstract);
            }

            return $this->resolving[$abstract]($abstract, $parameters);
        } catch (ReflectionException $e) {
            throw new ContainerException("Fail while attempt to make '$abstract'", 0, $e);
        }
    }
13915
private function getColumnsToDisplay()
    {
        if (is_array($this->columnsToDisplay)) {
            return $this->columnsToDisplay;
        }

        $columnsToDisplay = [];
        foreach ($this->getColumns() as $column) {
            /* @var $column \ZfcDatagrid\Column\AbstractColumn */

            if (! $column instanceof Column\Action && $column->isHidden() === false) {
                $columnsToDisplay[] = $column;
            }
        }
        if (empty($columnsToDisplay)) {
            throw new \Exception('No columns to display available');
        }

        $this->columnsToDisplay = $columnsToDisplay;

        return $this->columnsToDisplay;
    }
1305131
public function shouldRenderBasic(array $arguments) {
        if(isset($arguments['evenOnSamePage']) && $arguments['evenOnSamePage'] === true) {
            return $this->hasPermissions();
        } else {
            return $this->hasPermissions() && !$this->linksToCurrentPage($arguments);
        }
    }
1313470
public function display(array $args = array()) {
        if (empty($args)) {
            Garp_Cli::errorOut('The least you can do is provide a text...');
        } else {
            $text = implode(' ', $args);
            $figlet = new Zend_Text_Figlet();
            Garp_Cli::lineOut($figlet->render($text));
        }
        return true;
    }
847897
public function shouldRender(array $arguments = []) {
        foreach($this->items as $item) {
            if($item->shouldRender($arguments)) {
                $this->itemsToDisplay[] = $item;
            }
        }

        $this->shouldRenderButton = $this->button !== null && $this->button->shouldRender($arguments);

        // if there any items in the dropdown then we'll display it
        // or if the primary action should be displayed
        return !empty($this->itemsToDisplay) || $this->shouldRenderButton;
    }
1349736
public function resolve(string $abstract)
    {
        $concrete = null;

        try {
            $concrete = $this->getContainer()
                ->make($abstract);
        } catch (ReflectionException $exception) {
            // ..
        } catch (BindingResolutionException $exception) {
            // ..
        } catch (NotFoundExceptionInterface $exception) {
            // ..
        }

        return $concrete;
    }
327075
public function columns($columns) {
		if (is_array($columns))
			$this->columnList = $columns;
		else
			$this->columnList = func_get_args();
		return $this;
	}