public function copy()
	{
		$class = __NAMESPACE__ . '\\Scaffolding\\' . ucfirst($this->type);

		if (class_exists($class))
		{
			$obj = new $class($this->output, $this->arguments);
		}
		else
		{
			if (empty($this->type))
			{
				$this->output->error('Error: Sorry, scaffolding can\'t copy nothing. Try telling it what you want to copy.');
			}
			else
			{
				$this->output->error('Error: Sorry, scaffolding doesn\'t know how to copy a ' . $this->type);
			}
		}

		if (!method_exists($obj, 'doCopy'))
		{
			$this->output->error('Error: scaffolding doesn\'t know how to copy a ' . $this->type);
		}

		// Do the actual copy
		$obj->doCopy();
	}
public function copy()
	{
		$class = __NAMESPACE__ . '\\Scaffolding\\' . ucfirst($this->type);

		if (class_exists($class))
		{
			$obj = new $class($this->output, $this->arguments);
		}
		else
		{
			if (empty($this->type))
			{
				$this->output->error('Error: Sorry, scaffolding can\'t copy nothing. Try telling it what you want to copy.');
			}
			else
			{
				$this->output->error('Error: Sorry, scaffolding doesn\'t know how to copy a ' . $this->type);
			}
		}

		if (!method_exists($obj, 'doCopy'))
		{
			$this->output->error('Error: scaffolding doesn\'t know how to copy a ' . $this->type);
		}

		// Do the actual copy
		$obj->doCopy();
	}
public function copy ( ) { $ class = __NAMESPACE__ . '\\Scaffolding\\' . ucfirst ( $ this -> type ) ; if ( class_exists ( $ class ) ) { $ obj = new $ class ( $ this -> output , $ this -> arguments ) ; } else { if ( empty ( $ this -> type ) ) { $ this -> output -> error ( 'Error: Sorry, scaffolding can\'t copy nothing. Try telling it what you want to copy.' ) ; } else { $ this -> output -> error ( 'Error: Sorry, scaffolding doesn\'t know how to copy a ' . $ this -> type ) ; } } if ( ! method_exists ( $ obj , 'doCopy' ) ) { $ this -> output -> error ( 'Error: scaffolding doesn\'t know how to copy a ' . $ this -> type ) ; } // Do the actual copy $ obj -> doCopy ( ) ; }
Copy item and attempt to rename appropriatly

@return  void
Copy item and attempt to rename appropriatly